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-mbed5
Fork of Dot-AT-Firmware by
CmdRssi.cpp
00001 #include "CmdRssi.h" 00002 00003 CmdRssi::CmdRssi() : 00004 Command("Signal Strength", "AT+RSSI", "Displays signal strength information for received packets: last, min, max, avg in dB", "(-140-0),(-140-0),(-140-0),(-140-0)") 00005 { 00006 _queryable = true; 00007 } 00008 00009 uint32_t CmdRssi::action(std::vector<std::string> args) 00010 { 00011 mDot::rssi_stats stats = CommandTerminal::Dot()->getRssiStats(); 00012 CommandTerminal::Serial()->writef("%d, %d, %d, %d\r\n", stats.last, stats.min, stats.max, stats.avg); 00013 return 0; 00014 } 00015
Generated on Tue Jul 12 2022 20:40:04 by
