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 libxDot-mbed5
Diff: CommandTerminal/CmdLBTRSSI.cpp
- Revision:
- 17:95c9eb69329a
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/CommandTerminal/CmdLBTRSSI.cpp Mon Jun 19 15:54:03 2017 -0500
@@ -0,0 +1,22 @@
+#include "CmdLBTRSSI.h"
+
+CmdLBTRSSI::CmdLBTRSSI()
+:
+ Command("LBT RSSI", "AT+LBTRSSI", "READ LBT RSSI", "(-128-0)")
+{
+ _queryable = true;
+}
+
+uint32_t CmdLBTRSSI::action(std::vector<std::string> args)
+{
+#ifdef DEBUG_MAC
+ CommandTerminal::Serial()->writef("%d\r\n", CommandTerminal::Dot()->lbtRssi());
+#endif
+ return 0;
+}
+
+bool CmdLBTRSSI::verify(std::vector<std::string> args)
+{
+
+ return true;
+}