5.5
Write command from remote node
A command from a remote node or from a smartphone to an addressed node invokes a
WriteLocalData
callback.
This callback can be used to process the commands or data received inside the network. In the application demo,
the
Appli_WriteLocalDataCb
function is the callback where data or commands will be processed. The
command/data flow can be visualised in the picture below.
Figure 18.
Write command data flow
SetRemoteData
User-Action to
switch remote
node lights on
WriteLocalData
Mesh Library
Mesh Library
Source
Destination
LED ON
Appli_WriteLocalDataCb
The response data from the node is sent through
SendResponse
function.
5.6
Read command from a remote node
A Read command from a remote node or from a smartphone to an addressed node to get some information,
invokes the
ReadLocalData
callback. This callback can be used to read some information that a remote node
asks and provides the data back to the remote node. In the application demo, the
Appli_ReadLocalDataCb
function is the callback where the read commands is processed. The command/data flow can be seen in the
picture below.
Figure 19.
Read command from a remote node
ReadRemoteData()
User-Action to
Read a remote
node information
ReadLocalData
ReadAction
Appli_ReadLocalDataCb
Mesh Library
Mesh Library
Source
Destination
SendResponse
Sensor
ResponseCb
The response data from the node is sent via the
SendResponse
function.
5.7
Application functions and callbacks
The following section explains the different APIs available for the user application.
UM2295
Write command from remote node
UM2295
-
Rev 1
page 22/35