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/ATCommandRequest.cpp
- Revision:
- 6:5f31ddc17239
- Parent:
- 0:837e6c48e90d
diff -r 945b89c71902 -r 5f31ddc17239 Request/ATCommandRequest.cpp --- a/Request/ATCommandRequest.cpp Thu Nov 05 23:03:42 2015 +0000 +++ b/Request/ATCommandRequest.cpp Sat Nov 14 16:42:36 2015 +0000 @@ -1,6 +1,6 @@ #include "ATCommandRequest.h" -ATCommandRequest::ATCommandRequest(char frameID, const char * command, const char * parameter, int offset, int length) +ATCommandRequest::ATCommandRequest(unsigned char frameID, const char * command, const unsigned char * parameter, int offset, int length) : TxBase(2 + (parameter == NULL ? 0 : length), APIFrame::AT_Command, frameID) { set(command[0]); @@ -24,7 +24,7 @@ set(3, command[1]); } -void ATCommandRequest::setParameter(const char * parameter, int offset, int length) +void ATCommandRequest::setParameter(const unsigned char * parameter, int offset, int length) { setPosition(4); sets(parameter, offset, length);