Function
Description
Output parameter
None
5.7.4
Network data communication functions
The functions explained below help the developer to manage the network data communication and take the
associated actions.
Table 13.
Appli_WriteLocalDataCb
Function
Description
Prototype
MOBLE_RESULT
Appli_WriteLocalDataCb(MOBLE_ADDRESS peer_addr,
MOBLE_ADDRESS dst_peer,
MOBLEUINT8 command,
MOBLEUINT8 const *data,
MOBLEUINT32 length,
MOBLEBOOL response)
Behaviour description
Call back function called when action is required on node
itself
Input parameters
MOBLE_ADDRESS peer_addr: address of the peer
MOBLE_ADDRESS dst_peer: destination address of the
command. This address can be the address of Group to
which the node is subscribed or the unicast address of
element
MOBLEUINT16 command: command received for the action
MOBLEUINT8 const *data pointer to the data
MOBLEUINT32 length: length of the data
MOBLEBOOL response: If this is MOBLE_TRUE, the sender
expects an acknowledgement
Output parameter
MOBLE_RESULT status of result
Table 14.
Appli_ReadLocalDataCb
Function
Description
Prototype
MOBLE_RESULT
Appli_ReadLocalDataCb(MOBLE_ADDRESS peer_addr,
MOBLE_ADDRESS dst_peer,
MOBLEUINT8 command,
MOBLEUINT8 const *data,
MOBLEUINT32 length,
MOBLEBOOL response)
Behaviour description
Callback function invoked when some data are required from
node
UM2295
Application functions and callbacks
UM2295
-
Rev 1
page 25/35