Zephyr API Documentation
3.7.0
A Scalable Open Source RTOS
|
LwM2M resource item structure. More...
#include <lwm2m.h>
Data Fields | |
struct lwm2m_obj_path * | path |
Pointer to LwM2M path as a struct. | |
void * | value |
Pointer to resource value. | |
uint16_t | size |
Size of the value. | |
LwM2M resource item structure.
Value type must match the target resource as no type conversion are done and the value is just memcopied.
Following C types are used for resource types:
struct lwm2m_obj_path* lwm2m_res_item::path |
Pointer to LwM2M path as a struct.
uint16_t lwm2m_res_item::size |
Size of the value.
For string resources, it should contain the null-terminator.
void* lwm2m_res_item::value |
Pointer to resource value.