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.
Dependencies: MTS-Serial libmDot mbed-rtos mbed
Fork of mDot_USB_AT_firmware by
CmdSessionDataRate.cpp
00001 #include "CmdSessionDataRate.h" 00002 00003 CmdSessionDataRate::CmdSessionDataRate(mDot* dot, mts::MTSSerial& serial) 00004 : 00005 Command(dot, "Session Data Rate", "AT+SDR", "Get the current datarate"), 00006 _serial(serial) 00007 { 00008 _help = std::string(text()) + ": " + std::string(desc()); 00009 _queryable = true; 00010 } 00011 00012 uint32_t CmdSessionDataRate::action(std::vector<std::string> args) { 00013 if (args.size() == 1) { 00014 if (_dot->getVerbose()) 00015 _serial.writef("Session Data Rate: "); 00016 00017 _serial.writef("%s\r\n", mDot::DataRateStr(_dot->getSessionDataRate()).c_str()); 00018 } 00019 00020 00021 return 0; 00022 } 00023 00024 bool CmdSessionDataRate::verify(std::vector<std::string> args) { 00025 if (args.size() == 1) 00026 return true; 00027 00028 setErrorMessage("Invalid arguments"); 00029 return false; 00030 }
Generated on Tue Jul 12 2022 20:37:29 by
1.7.2
