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.
ATCommandIndicator.cpp
00001 #include "ATCommandIndicator.h" 00002 00003 ATCommandIndicator::ATCommandIndicator(APIFrame *frame) 00004 : RxBase(frame) 00005 { } 00006 00007 int ATCommandIndicator::getFrameID() 00008 { 00009 return data[1]; 00010 } 00011 00012 unsigned char * ATCommandIndicator::getRequestCommand() 00013 { 00014 return data + 2; 00015 } 00016 00017 int ATCommandIndicator::getCommandStatus() 00018 { 00019 return data[4]; 00020 } 00021 00022 unsigned char * ATCommandIndicator::getParameter() 00023 { 00024 if (getParameterLength() <= 0) 00025 return NULL; 00026 00027 return data + 5; 00028 } 00029 00030 unsigned char ATCommandIndicator::getParameter(int index) 00031 { 00032 return data[5 + index]; 00033 } 00034 00035 int ATCommandIndicator::getParameterLength() 00036 { 00037 return getPosition() - 5; 00038 } 00039 00040 int ATCommandIndicator::getParameterOffset() 00041 { 00042 return 5; 00043 } 00044 00045 bool ATCommandIndicator::convert(APIFrame * frame) 00046 { 00047 if (frame == NULL) 00048 return false; 00049 00050 if (frame->getFrameType() != APIFrame::AT_Command_Response) 00051 return false; 00052 00053 return APIFrame::convert(frame); 00054 } 00055
Generated on Tue Jul 12 2022 18:56:10 by 1.7.2