monoZ docs
Lwm2m Protocol

-For monoZ LWM2M Protocol refer MZ_Lwm2m_public.h file. More...

Functions

void * mz_read_token_Ob19_0_0 (mz_error_t *ret)
 This function reads te token value of 19/0/0. More...
 
void * mz_read_token_Ob19_1_0 (mz_error_t *ret)
 This function reads te token value of 19/1/0. More...
 
mz_error_t mz_set_value_Ob19_0_0 (char *src)
 This function writes 19/0/0 value to internal resource structure. More...
 
mz_error_t mz_set_value_Ob19_1_0 (char *src)
 This function writes 19/1/0 value to internal resource structure. More...
 
void * mz_read_value_Ob19_0_0 (mz_error_t *ret)
 This function Reads internal resource structure value of 19/0/0. More...
 
void * mz_read_value_Ob19_1_0 (mz_error_t *ret)
 This function Reads internal resource structure value of 19/1/0. More...
 
mz_error_t mz_notify_Ob19_0_0 (void)
 This function Notifies internal resource structure value of 19/0/0 to LwM2M server. More...
 
mz_error_t mz_notify_Ob19_1_0 (void)
 This function Notifies internal resource structure value of 19/1/0 to LwM2M server. More...
 
mz_error_t mz_set_and_notify_Ob19_0_0 (char *src)
 This function writes 19/0/0 value to internal resource structure and then notify to server. More...
 
mz_error_t mz_set_and_notify_Ob19_1_0 (char *src)
 This function writes 19/1/0 value to internal resource structure and then notify to server. More...
 

Detailed Description

-For monoZ LWM2M Protocol refer MZ_Lwm2m_public.h file.

Function Documentation

◆ mz_read_token_Ob19_0_0()

void * mz_read_token_Ob19_0_0 ( mz_error_t ret)

This function reads te token value of 19/0/0.

Parameters
retmz_error_t
Note
If no valid token, then ret = MZ_LW_INVALID_TOKEN Optimized by returning the internal reference of token.
Warning
DONOT change the values using the return pointer. Only use it for copy/compare purpose.

◆ mz_read_token_Ob19_1_0()

void * mz_read_token_Ob19_1_0 ( mz_error_t ret)

This function reads te token value of 19/1/0.

Parameters
retmz_error_t
Note
If no valid token, then ret = MZ_LW_INVALID_TOKEN Optimized by returning the internal reference of token.
Warning
DONOT change the values using the return pointer. Only use it for copy/compare purpose.

◆ mz_set_value_Ob19_0_0()

mz_error_t mz_set_value_Ob19_0_0 ( char *  src)

This function writes 19/0/0 value to internal resource structure.

Parameters
srcchar
Returns
MZ_OK/MZ_FAIL
Note
The value will be send to LwM2M server when LwM2M READ or NOTIFY event occurs

◆ mz_set_value_Ob19_1_0()

mz_error_t mz_set_value_Ob19_1_0 ( char *  src)

This function writes 19/1/0 value to internal resource structure.

Parameters
srcchar
Returns
MZ_OK/MZ_FAIL
Note
The value will be send to LwM2M server when LwM2M READ or NOTIFY event occurs

◆ mz_read_value_Ob19_0_0()

void * mz_read_value_Ob19_0_0 ( mz_error_t ret)

This function Reads internal resource structure value of 19/0/0.

Parameters
retmz_error_t
Note
Optimized by returning the internal reference of token.
Warning
DONOT change the values using the return pointer. Only use it for copy/compare purpose.

◆ mz_read_value_Ob19_1_0()

void * mz_read_value_Ob19_1_0 ( mz_error_t ret)

This function Reads internal resource structure value of 19/1/0.

Parameters
retmz_error_t
Note
NOTE : Optimized by returning the internal reference of token.
Warning
Caution : DONOT change the values using the return pointer. Only use it for copy/compare purpose.

◆ mz_notify_Ob19_0_0()

mz_error_t mz_notify_Ob19_0_0 ( void  )

This function Notifies internal resource structure value of 19/0/0 to LwM2M server.

Returns
MZ_OK/MZ_FAIL
Note
use mz_set_value_Ob19_0_0() API to set the values first before notify. If values are not set then this API call will use old stored value to NOTIFY to the server. The user can use mz_set_and_notify_Ob19_0_0() API to set the value and then notify to server.

◆ mz_notify_Ob19_1_0()

mz_error_t mz_notify_Ob19_1_0 ( void  )

This function Notifies internal resource structure value of 19/1/0 to LwM2M server.

Returns
MZ_OK/MZ_FAIL
Note
use mz_set_value_Ob19_1_0() API to set the values first before notify. If values are not set then this API call will use old stored value to NOTIFY to the server. The user can use mz_set_and_notify_Ob19_1_0() API to set the value and then notify to server.

◆ mz_set_and_notify_Ob19_0_0()

mz_error_t mz_set_and_notify_Ob19_0_0 ( char *  src)

This function writes 19/0/0 value to internal resource structure and then notify to server.

Parameters
srcchar
Returns
MZ_OK/MZ_FAIL

◆ mz_set_and_notify_Ob19_1_0()

mz_error_t mz_set_and_notify_Ob19_1_0 ( char *  src)

This function writes 19/1/0 value to internal resource structure and then notify to server.

Parameters
srcchar
Returns
MZ_OK/MZ_FAIL