MultiTech / Mbed OS mDot_AT_firmware_CUSTOM

Dependencies:   libmDot-Custom MTS-Serial

Fork of mDot_AT_firmware_CUSTOM by Jason Reiss

To change channel plans replace AS923 with AU915, EU868, KR920 or US915 on line 15

#define CHANNEL_PLAN CP_AS923

See Supported Channel Plans

Committer:
jreiss
Date:
Thu Mar 23 20:40:54 2017 +0000
Revision:
29:15b59b827ac7
Parent:
14:e80ace5a6834
update libmDot-Custom

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Mike Fiore 1:e52ae6584f1c 1 #include "CmdRssi.h"
Mike Fiore 1:e52ae6584f1c 2
Jason Reiss 14:e80ace5a6834 3 CmdRssi::CmdRssi() :
Jason Reiss 14:e80ace5a6834 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 {
Jason Reiss 14:e80ace5a6834 11 mDot::rssi_stats stats = CommandTerminal::Dot()->getRssiStats();
Jason Reiss 14:e80ace5a6834 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