XBee and XBee-PRO ZigBee RF modules provide cost-effective wireless connectivity to electronic devices. They are interoperable with other ZigBee PRO feature set devices, including devices from other vendors.

Dependencies:   BufferedArray

Dependents:   MBEDminiproject

Indicator/XBeeTxStatusIndicator.cpp

Committer:
yangcq88517
Date:
2015-11-14
Revision:
6:5f31ddc17239
Parent:
0:837e6c48e90d

File content as of revision 6:5f31ddc17239:

#include "XBeeTxStatusIndicator.h"

XBeeTxStatusIndicator::XBeeTxStatusIndicator(APIFrame * frame)
    : RxBase(frame)
{ }

int XBeeTxStatusIndicator::getFrameID()
{
    return data[1];
}

int XBeeTxStatusIndicator::getDeliveryStatus()
{
    return data[2];
}

bool  XBeeTxStatusIndicator::convert(APIFrame * frame)
{
    if (frame == NULL)
        return false;

    if (frame->getFrameType() != APIFrame::XBee_Transmit_Status)
        return false;

    return APIFrame::convert(frame);
}