MiApp_DiscardMessage Function

MiWi Development Environment

MiWi(TM) Development Environment Help
MiApp_DiscardMessage Function
C
void MiApp_DiscardMessage();
Description

This is the primary user interface functions for the application layer to discard the current active message, release the system resources used and ready to receive the next message. It is must be called after finish handling the message, otherwise, no further message can be received.

Preconditions

Protocol initialization has been done. A message has been received by the application layer.

Returns

None

Remarks

None

Example
if( TRUE == MiApp_MessageAvailable() )
{
    // handle the received message in global variable RxMessage

    // discard the received message after processing
    MiApp_DiscardMessage();
}
Microchip My Application xx.yy - [Jan 1, 2009]
Copyright © 2009 Microchip Technology, Inc.  All rights reserved.