nRF5 SDK v15.0.0
Data Fields
lwm2m_object_prototype_t Struct Reference

LWM2M object prototype structure. More...

#include <lwm2m_api.h>

Data Fields

uint16_t object_id
 
lwm2m_object_callback_t callback
 
char * p_alias_name
 

Detailed Description

LWM2M object prototype structure.

Each instance will have this structure in the front of its instance structure. The object is used to have a common way of looking up its object id and callback structure for each of the inherited. As there is no instance of the objects themselves, the prototype is used as a meta object in order to have a common set of functions for all instances of a object kind.

Field Documentation

lwm2m_object_callback_t lwm2m_object_prototype_t::callback

Called when for request to /0 (object) and /0/1 if instance 1 is not found.

uint16_t lwm2m_object_prototype_t::object_id

Identifies the object.

char* lwm2m_object_prototype_t::p_alias_name

Alternative name of the resource, used when LWM2M_NAMED_OBJECT is set.


The documentation for this struct was generated from the following file:

Documentation feedback | Developer Zone | Subscribe | Updated