Function anjay_register_object
Defined in File dm.h
Function Documentation
-
int anjay_register_object(anjay_t *anjay, const anjay_dm_object_def_t *const *def_ptr)
Registers the Object in the data model, making it available for access by the LwM2M Servers.
NOTE:
def_ptrMUST stay valid up to and including the corresponding anjay_delete or anjay_unregister_object call.- Parameters:
anjay – Anjay object to operate on.
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, a negative value in case of error.