The RCMMessage structure encapsulates a single message in the RCM protocol.
Apart from the payload, each message has the following properties:
- source address (short or UID)
- destination address (short, UID, group or broadcast)
- source endpoint (see Endpoint message exchange)
- destination endpoint (see Endpoint message exchange)
- radius (maximum number of network hops the message can travel)
- ack mode (message requires acknowledgment or not)
In addition, received messages also carry information about:
- link quality indicator (LQI)
- received signal strength indicator (RSSI)
- the RCMMSG_InitOutgoingMessageUsingShortAddrMode function initializes an outgoing message where the destination node is specified using short (16-bit) network address (unicast message)
- the RCMMSG_InitOutgoingMessageUsingUID function initializes an outgoing message where the destination node is specified using 64-bit UID (unicast message)
- the RCMMSG_InitOutgoingMessageUsingBroadcast function initializes an outgoing broadcast message (to all nodes)
The Endpoint message exchange chapter includes an example that illustrates the usage of these functions.
Generated on Fri Aug 31 2018 09:37:14 for RCM API Library by 1.8.7