Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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 Jan 15 2025 16:10:47 by
1.7.2


