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.
ATCommandRequest.cpp
00001 #include "ATCommandRequest.h" 00002 00003 ATCommandRequest::ATCommandRequest(unsigned char frameID, const char * command, const unsigned char * parameter, int offset, int length) 00004 : TxBase(2 + (parameter == NULL ? 0 : length), APIFrame::AT_Command, frameID) 00005 { 00006 set(command[0]); 00007 set(command[1]); 00008 00009 if (parameter != NULL) 00010 sets(parameter, offset, length); 00011 } 00012 00013 void ATCommandRequest::setAppleChanges(bool appleChanges) 00014 { 00015 if (appleChanges) 00016 setFrameType(APIFrame::AT_Command); 00017 else 00018 setFrameType(APIFrame::AT_Command_Queue_Parameter_Value); 00019 } 00020 00021 void ATCommandRequest::setCommand(const char * command) 00022 { 00023 set(2, command[0]); 00024 set(3, command[1]); 00025 } 00026 00027 void ATCommandRequest::setParameter(const unsigned char * parameter, int offset, int length) 00028 { 00029 setPosition(4); 00030 sets(parameter, offset, length); 00031 }
Generated on Tue Jul 12 2022 18:56:10 by 1.7.2