nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches
lwm2m_codec_helpers.h File Reference

LwM2M codec helpers. More...

#include <zephyr/net/lwm2m.h>
#include "cloud_codec.h"

Go to the source code of this file.

Functions

int lwm2m_codec_helpers_create_objects_and_resources (void)
 Create object and resource instances for objects that do not have this setup already through default objects in the LwM2M engine.
 
int lwm2m_codec_helpers_setup_resources (void)
 Set up dedicated buffers for resources that do not have storage set in the respective LwM2M object source files.
 
int lwm2m_codec_helpers_set_agnss_data (struct cloud_data_agnss_request *agnss_request)
 Set Assisted GNSS (A-GNSS) request data. This function will populate the GNSS assistance object (object ID 33625) with the A-GNSS request.
 
int lwm2m_codec_helpers_set_pgps_data (struct cloud_data_pgps_request *pgps_request)
 Set Predicted GPS (P-GPS) request data. This function will populate the GNSS assistance object (object ID 33625) with the P-GPS request.
 
int lwm2m_codec_helpers_setup_configuration_object (struct cloud_data_cfg *cfg, lwm2m_engine_set_data_cb_t callback)
 Set the initial values for the application's configuration object and register callbacks for configuration changes.
 
int lwm2m_codec_helpers_get_configuration_object (struct cloud_data_cfg *cfg)
 Get the current values of the application's configuration object.
 
int lwm2m_codec_helpers_set_gnss_data (struct cloud_data_gnss *gnss)
 Set GNSS data.
 
int lwm2m_codec_helpers_set_sensor_data (struct cloud_data_sensors *sensor)
 Set environmental sensor data.
 
int lwm2m_codec_helpers_set_modem_dynamic_data (struct cloud_data_modem_dynamic *modem_dynamic)
 Set modem dynamic data.
 
int lwm2m_codec_helpers_set_modem_static_data (struct cloud_data_modem_static *modem_static)
 Set modem static data.
 
int lwm2m_codec_helpers_set_battery_data (struct cloud_data_battery *battery)
 Set battery data.
 
int lwm2m_codec_helpers_set_user_interface_data (struct cloud_data_ui *user_interface)
 Set user interface (UI) data.
 
int lwm2m_codec_helpers_set_neighbor_cell_data (struct cloud_data_neighbor_cells *neighbor_cells)
 Set neighbor cell data.
 
int lwm2m_codec_helpers_object_path_list_add (struct cloud_codec_data *output, const struct lwm2m_obj_path path[], size_t path_size)
 Generate path lists with reference to objects. This function outputs a list of paths that can be used to reference objects that should be updated (sent to server) when calling the lwm2m_send_cb() function.
 

Detailed Description

LwM2M codec helpers.