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.
Diff: Request/XBeeTx64Request.cpp
- Revision:
- 0:837e6c48e90d
- Child:
- 6:5f31ddc17239
diff -r 000000000000 -r 837e6c48e90d Request/XBeeTx64Request.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Request/XBeeTx64Request.cpp Thu Oct 22 12:28:26 2015 +0000 @@ -0,0 +1,25 @@ +#include "XBeeTx64Request.h" + +XBeeTx64Request::XBeeTx64Request(char frameID, Address * remoteAddress, OptionsBase * transmitOptions, const char * payload, int offset, int length) + : TxBase(9 + length, APIFrame::Tx64_Request, frameID) +{ + sets(remoteAddress->getAddressValue(), 0, 8); + set(transmitOptions->getValue()); + sets(payload, offset, length); +} + +void XBeeTx64Request::setPayload(const char * data, int offset, int length) +{ + setPosition(11); + sets(data, offset, length); +} + +void XBeeTx64Request::setTransmitOptions(OptionsBase * transmitOptions) +{ + data[10] = transmitOptions->getValue(); +} + +void XBeeTx64Request::setRemoteAddress(Address * remoteAddress) +{ + sets(2, remoteAddress->getAddressValue(), 0, 8); +} \ No newline at end of file