Function anjay_lwm2m_gateway_register_object

Function Documentation

int anjay_lwm2m_gateway_register_object(anjay_t *anjay, anjay_iid_t iid, const anjay_dm_object_def_t *const *def_ptr)

Register an Object in LwM2M Gateway End Device Data Model.

Parameters:
  • anjay – Anjay object to operate on

  • iid – End Device Instance ID

  • def_ptr – Pointer to the Object definition struct. The exact value passed to this function will be forwarded to all data model handler calls.

Returns:

0 on success, or a negative value in case of error.