Myriota UltraLite SDK 2.4.0
Loading...
Searching...
No Matches
Device control

Downlink message reception and device control. More...

Functions

MYRIOTA_USER_API time_t OnReceiveMessage (void)
 Returns a value used to represent a received user message event.
 
MYRIOTA_USER_API uint8_t * ReceiveMessage (int *size)
 Retrieve the received user message.
 

Detailed Description

Downlink message reception and device control.

Function Documentation

◆ OnReceiveMessage()

MYRIOTA_USER_API time_t OnReceiveMessage ( void  )

Returns a value used to represent a received user message event.

Returns
A time_t value representing the time for a received user message event.

◆ ReceiveMessage()

MYRIOTA_USER_API uint8_t * ReceiveMessage ( int *  size)

Retrieve the received user message.

The length of received message is indicated by size.

Parameters
size[out]pointer to an integer to store the size of the received message.
Returns
a pointer to the message if size is greater than 0 or NULL otherwise.