AT command firmware for MultiTech Dot devices.
Fork of mDot_AT_firmware by
CmdFrequencyBand.cpp
00001 #include "CmdFrequencyBand.h" 00002 00003 CmdFrequencyBand::CmdFrequencyBand() : 00004 #if MTS_CMD_TERM_VERBOSE 00005 Command("Current Frequency Band", "AT+FREQ", "Current Frequency Band of Device 'US915', 'AU915', 'EU868', 'AS923', 'AS923-2', 'AS923-3', 'AS923-4', 'KR920', 'AS923-JAPAN', 'IN865', or 'RU864'", "") 00006 #else 00007 Command("AT+FREQ") 00008 #endif 00009 { 00010 _queryable = true; 00011 } 00012 00013 uint32_t CmdFrequencyBand::action(const std::vector<std::string>& args) 00014 { 00015 if (args.size() == 1) 00016 { 00017 // using getChannelPlanName here instead of mDot::FrequencyBandStr allows AT firmware to properly display custom channel plan names 00018 CommandTerminal::Serial()->writef("%s\r\n", CommandTerminal::Dot()->getChannelPlanName().c_str()); 00019 } 00020 00021 return 0; 00022 }
Generated on Wed Dec 6 2023 19:34:05 by 1.7.2