XBee API operation library for mbed
Diff: SmartLabXBeeCore/Indicator/ManyToOneRouteIndicator.cpp
- Revision:
- 8:4da2ac03e35e
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SmartLabXBeeCore/Indicator/ManyToOneRouteIndicator.cpp Wed Mar 30 19:58:48 2016 +0000 @@ -0,0 +1,21 @@ +#include "ManyToOneRouteIndicator.h" + +ManyToOneRouteIndicator::ManyToOneRouteIndicator(APIFrame * frame) + : RxBase(frame) +{ } + +Address ManyToOneRouteIndicator::getRemoteDevice() +{ + return Address(data + 1); +} + +bool ManyToOneRouteIndicator::convert(APIFrame * frame) +{ + if (frame == NULL) + return false; + + if (frame->getFrameType() != APIFrame::Many_to_One_Route_Request_Indicator) + return false; + + return APIFrame::convert(frame); +}