C
Description
This is one of the primary user interface functions for the application layer to unicast a message. The destination device is in the connection table specified by the input parameter ConnectionIndex. The application payload is filled in the global char array TxBuffer.
Preconditions
Protocol initialization has been done. The input parameter ConnectionIndex points to a valid peer device in the connection table.
Parameters
Parameters |
Description |
BYTE ConnectionIndex |
The index of the destination device in the connection table. |
BOOL SecEn |
The boolean indicates if the application payload needs to be secured before transmission. |
Returns
A boolean to indicates if the unicast procedure is succcessful.
Remarks
None
Example
// Secure and then unicast the message stored in TxBuffer to the first device in // the connection table MiApp_UnicastConnection(0, TRUE);