few changes for RTS/CTS control
Dependencies: MTS-Serial libmDot mbed-rtos mbed
Fork of mDot_AT_firmware by
CmdFrequencyBand.cpp
00001 #include "CmdFrequencyBand.h" 00002 00003 CmdFrequencyBand::CmdFrequencyBand(mDot* dot, mts::MTSSerial& serial) : 00004 Command(dot, "Frequency Band", "AT+FREQ", "Configured Frequency Band '868' or '915'"), _serial(serial) 00005 { 00006 _help = std::string(text()) + ": " + std::string(desc()); 00007 _usage = "(868,915)"; 00008 _queryable = true; 00009 } 00010 00011 uint32_t CmdFrequencyBand::action(std::vector<std::string> args) 00012 { 00013 if (args.size() == 1) 00014 { 00015 if (_dot->getVerbose()) 00016 _serial.writef("Frequency Band: "); 00017 00018 _serial.writef("%s\r\n", mDot::FrequencyBandStr(_dot->getFrequencyBand()).c_str()); 00019 } 00020 00021 return 0; 00022 } 00023 00024 bool CmdFrequencyBand::verify(std::vector<std::string> args) 00025 { 00026 if (args.size() == 1) 00027 return true; 00028 00029 setErrorMessage("Invalid arguments"); 00030 return false; 00031 }
Generated on Tue Jul 12 2022 16:01:22 by 1.7.2