nRF Connect SDK API 2.8.99
Loading...
Searching...
No Matches

◆ NRF_CLOUD_OBJ_PRE_ENC_DEFINE

#define NRF_CLOUD_OBJ_PRE_ENC_DEFINE ( _name,
_data,
_len )

#include <include/net/nrf_cloud_codec.h>

Value:
struct nrf_cloud_obj _name = { .type = NRF_CLOUD_OBJ_TYPE__UNDEFINED, \
.encoded_data = { .ptr = _data, .len = _len } }
@ NRF_CLOUD_OBJ_TYPE__UNDEFINED
Definition nrf_cloud_codec.h:35
@ NRF_CLOUD_ENC_SRC_PRE_ENCODED
Definition nrf_cloud_codec.h:53
Object used for building nRF Cloud messages.
Definition nrf_cloud_codec.h:84

Define an nRF Cloud object with pre-encoded data.

This macro defines a codec object with the type of NRF_CLOUD_OBJ_TYPE__UNDEFINED and initializes the encoded data with the provided parameters.

Parameters
_nameName of the object.
_dataPointer to pre-encoded data.
_lenSize of the pre-encoded data.