Multitech xDot AT Firmware

Dependencies:   MTS-Serial libxDot-mbed5

Committer:
jreiss
Date:
Wed Jan 16 14:20:49 2019 +0000
Revision:
18:72b6b49d363d
Parent:
14:f9a77400b622
Update libxDot to latest and mbed-os to 5.7.7; Update PacketRx for new library

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Mike Fiore 1:e52ae6584f1c 1 #include "CmdRssi.h"
Mike Fiore 1:e52ae6584f1c 2
Mike Fiore 14:f9a77400b622 3 CmdRssi::CmdRssi() :
Mike Fiore 14:f9a77400b622 4 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)")
Mike Fiore 1:e52ae6584f1c 5 {
Mike Fiore 1:e52ae6584f1c 6 _queryable = true;
Mike Fiore 1:e52ae6584f1c 7 }
Mike Fiore 1:e52ae6584f1c 8
Mike Fiore 1:e52ae6584f1c 9 uint32_t CmdRssi::action(std::vector<std::string> args)
Mike Fiore 1:e52ae6584f1c 10 {
Mike Fiore 14:f9a77400b622 11 mDot::rssi_stats stats = CommandTerminal::Dot()->getRssiStats();
Mike Fiore 14:f9a77400b622 12 CommandTerminal::Serial()->writef("%d, %d, %d, %d\r\n", stats.last, stats.min, stats.max, stats.avg);
Mike Fiore 1:e52ae6584f1c 13 return 0;
Mike Fiore 1:e52ae6584f1c 14 }
Mike Fiore 1:e52ae6584f1c 15