Typedefs | Functions
LWM2M.h File Reference

Private header for LWM2M file. More...

#include "XDK_LWM2M.h"
+ Include dependency graph for LWM2M.h:
+ This graph shows which files directly or indirectly include this file:

Typedefs

typedef void(* LWM2M_LedStateChangeHandler_T )(bool state)
 

Functions

void LWM2M_OrangeLedSetState (bool on)
 Set state of the orange LED. More...
 
void LWM2M_Reboot (void)
 Reboot the device. More...
 
void LWM2M_RebootNow (const char *msg)
 Reboots the device. Prints last message and wait before reboot the device, if SERVAL_LOG_LEVEL is at least SERVAL_LOG_LEVEL_ERROR. More...
 
void LWM2M_RedLedSetState (bool on)
 Set state of the red LED. More...
 
void LWM2M_SetOrangeLedStateChangeHandler (LWM2M_LedStateChangeHandler_T handler)
 Set change handler for orange LED. More...
 
void LWM2M_SetRedLedStateChangeHandler (LWM2M_LedStateChangeHandler_T handler)
 Set change handler for red LED. More...
 
void LWM2M_SetYellowLedStateChangeHandler (LWM2M_LedStateChangeHandler_T handler)
 Set change handler for yellow LED. More...
 
void LWM2M_YellowLedSetState (bool on)
 Set state of the yellow LED. More...
 
LWM2M_Setup_TLWM2MGetCredentials (void)
 

Typedef Documentation

typedef void(* LWM2M_LedStateChangeHandler_T)(bool state)

Callback handler for LED state changes.

Parameters
[in]statenew state of LED. true for LED on, false, for off

Function Documentation

void LWM2M_OrangeLedSetState ( bool  on)

Set state of the orange LED and reports that to the associated handler.

See also
LWM2M_SetOrangeLedStateChangeHandler
Parameters
[in]onstate of LED

+ Here is the caller graph for this function:

void LWM2M_Reboot ( void  )

When the function is called first, it reboots with a delay of 5s to have time to send a response. Though reboot is sometimes used for undetermined working devices, the delay of 5 s may not work. Therefore, a second call of this function reboots the device immediately (and without sending a response).

+ Here is the caller graph for this function:

void LWM2M_RebootNow ( const char *  msg)
Parameters
[in]msgmessage to be printed
void LWM2M_RedLedSetState ( bool  on)

Set state of the red LED and reports that to the associated handler.

See also
LWM2M_SetRedLedStateChangeHandler
Parameters
[in]onstate of LED

+ Here is the caller graph for this function:

void LWM2M_SetOrangeLedStateChangeHandler ( LWM2M_LedStateChangeHandler_T  handler)
Parameters
[in]handlercallback for LED state changes

+ Here is the caller graph for this function:

void LWM2M_SetRedLedStateChangeHandler ( LWM2M_LedStateChangeHandler_T  handler)
Parameters
[in]handlercallback for LED state changes

+ Here is the caller graph for this function:

void LWM2M_SetYellowLedStateChangeHandler ( LWM2M_LedStateChangeHandler_T  handler)
Parameters
[in]handlercallback for LED state changes

+ Here is the caller graph for this function:

void LWM2M_YellowLedSetState ( bool  on)

Set state of the yellow LED and reports that to the associated handler.

See also
LWM2M_SetOrangeLedStateChangeHandler
Parameters
[in]onstate of LED

+ Here is the caller graph for this function:

LWM2M_Setup_T* LWM2MGetCredentials ( void  )

This documentation file has been automatically generated on Fri Oct 4 2019 03:47:00 by doxygen 1.8.8