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

◆ NRF_CLOUD_OBJ_JSON_DEFINE

#define NRF_CLOUD_OBJ_JSON_DEFINE (   _name)

#include <include/net/nrf_cloud_codec.h>

Value:
struct nrf_cloud_obj _name = { .type = NRF_CLOUD_OBJ_TYPE_JSON, .json = NULL, \
.enc_src = NRF_CLOUD_ENC_SRC_NONE, \
.encoded_data = { .ptr = NULL, .len = 0 } }
@ NRF_CLOUD_OBJ_TYPE_JSON
Definition: nrf_cloud_codec.h:37
@ NRF_CLOUD_ENC_SRC_NONE
Definition: nrf_cloud_codec.h:49
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 JSON object.

This macro defines a codec object with the type of NRF_CLOUD_OBJ_TYPE_JSON.

Parameters
_nameName of the object.