nRF Connect SDK API 0.1.0
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:
.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
enum nrf_cloud_obj_type type
Definition: nrf_cloud_codec.h:86
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.