MiApp_UnicastAddress Function

MiWi Development Environment

MiWi(TM) Development Environment Help
MiApp_UnicastAddress Function
C
BOOL MiApp_UnicastAddress(
    BYTE * DestAddress, 
    BOOL PermanentAddr, 
    BOOL SecEn
);
Description

This is one of the primary user interface functions for the application layer to unicast a message. The destination device is specified by the input parameter DestinationAddress. The application payload is filled in the global char array TxBuffer.

Preconditions

Protocol initialization has been done.

Parameters
Parameters 
Description 
BYTE * DestinationAddress 
The destination address of the unicast 
BOOL PermanentAddr 
The boolean to indicate if the destination address above is a permanent address or alternative network address. This parameter is only used in a network protocol. 
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 broadcast the message stored in TxBuffer to the permanent address
// specified in the input parameter.
MiApp_UnicastAddress(DestAddress, TRUE, TRUE);
Microchip My Application xx.yy - [Jan 1, 2009]
Copyright © 2009 Microchip Technology, Inc.  All rights reserved.