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-src
Fork of mDot_AT_firmware by
CmdRssi.cpp
00001 #include "CmdRssi.h" 00002 00003 CmdRssi::CmdRssi(mDot* dot, mts::MTSSerial& serial) : 00004 Command(dot, "Signal Strength", "AT+RSSI", "Displays signal strength information for received packets: last, min, max, avg"), 00005 _serial(serial) 00006 { 00007 _help = std::string(text()) + ": " + std::string(desc()); 00008 _usage = "(-140-0),(-140-0),(-140-0),(-140-0)"; 00009 _queryable = true; 00010 } 00011 00012 uint32_t CmdRssi::action(std::vector<std::string> args) 00013 { 00014 mDot::rssi_stats stats = _dot->getRssiStats(); 00015 00016 if (_dot->getVerbose()) 00017 _serial.writef("RSSI stats: "); 00018 00019 _serial.writef("%d, %d, %d, %d\r\n", stats.last, stats.min, stats.max, stats.avg); 00020 00021 return 0; 00022 } 00023
Generated on Tue Jul 12 2022 21:40:57 by
1.7.2
