nRF Connect SDK API 0.1.0
|
int json_common_batch_data_add | ( | cJSON * | parent, |
enum json_common_buffer_type | type, | ||
void * | buf, | ||
size_t | buf_count, | ||
const char * | object_label | ||
) |
#include <applications/asset_tracker_v2/src/cloud/cloud_codec/json_common.h>
Encode all queued entries in the passed in buffer and add it to the parent object as an array.
[out] | parent | Pointer to object that the encoded data is added to. |
[in] | type | Type of data passed in to the function. |
[in] | buf | Pointer to data buffer that is to be encoded. |
[in] | buf_count | Number of entries in passed in data buffer. |
[in] | object_label | Name of the array entry that is added to the parent object. |