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

Committer:
yangcq88517
Date:
Sat Nov 14 16:42:36 2015 +0000
Revision:
6:5f31ddc17239
Parent:
0:837e6c48e90d
change to unsigned char array

Who changed what in which revision?

UserRevisionLine numberNew contents of line
yangcq88517 0:837e6c48e90d 1 #include "ManyToOneRouteIndicator.h"
yangcq88517 0:837e6c48e90d 2
yangcq88517 0:837e6c48e90d 3 ManyToOneRouteIndicator::ManyToOneRouteIndicator(APIFrame * frame)
yangcq88517 0:837e6c48e90d 4 : RxBase(frame)
yangcq88517 0:837e6c48e90d 5 { }
yangcq88517 0:837e6c48e90d 6
yangcq88517 0:837e6c48e90d 7 Address ManyToOneRouteIndicator::getRemoteDevice()
yangcq88517 0:837e6c48e90d 8 {
yangcq88517 0:837e6c48e90d 9 return Address(data + 1);
yangcq88517 0:837e6c48e90d 10 }
yangcq88517 0:837e6c48e90d 11
yangcq88517 0:837e6c48e90d 12 bool ManyToOneRouteIndicator::convert(APIFrame * frame)
yangcq88517 0:837e6c48e90d 13 {
yangcq88517 0:837e6c48e90d 14 if (frame == NULL)
yangcq88517 0:837e6c48e90d 15 return false;
yangcq88517 0:837e6c48e90d 16
yangcq88517 0:837e6c48e90d 17 if (frame->getFrameType() != APIFrame::Many_to_One_Route_Request_Indicator)
yangcq88517 0:837e6c48e90d 18 return false;
yangcq88517 0:837e6c48e90d 19
yangcq88517 0:837e6c48e90d 20 return APIFrame::convert(frame);
yangcq88517 0:837e6c48e90d 21 }