MiApp_BroadcastPacket Function

MiWi Development Environment

MiWi(TM) Development Environment Help
MiApp_BroadcastPacket Function
C
BOOL MiApp_BroadcastPacket(
    BOOL SecEn
);
Description

This is the primary user interface function for the application layer to broadcast a message. The application payload is filled in the global char array TxBuffer.

Preconditions

Protocol initialization has been done.

Parameters
Parameters 
Description 
BOOL SecEn 
The boolean indicates if the application payload needs to be secured before transmission. 
Returns

A boolean to indicates if the broadcast procedure is succcessful.

Remarks

None

Example
// Secure and then broadcast the message stored in TxBuffer
MiApp_BroadcastPacket(TRUE);
Microchip My Application xx.yy - [Jan 1, 2009]
Copyright © 2009 Microchip Technology, Inc.  All rights reserved.