![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
AT terminal for the mDot using the USB debug port instead of the serial port.
Dependencies: MTS-Serial libmDot-mbed5
Fork of Dot-AT-Firmware by
CommandTerminal/CmdLBTRSSI.cpp@18:f5d28d621bb0, 2018-03-02 (annotated)
- Committer:
- pferland
- Date:
- Fri Mar 02 20:01:38 2018 +0000
- Revision:
- 18:f5d28d621bb0
- Parent:
- 17:95c9eb69329a
Added ability to force the AT terminal to use the USB debug port
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
jenkins@jenkinsdm1 | 17:95c9eb69329a | 1 | #include "CmdLBTRSSI.h" |
jenkins@jenkinsdm1 | 17:95c9eb69329a | 2 | |
jenkins@jenkinsdm1 | 17:95c9eb69329a | 3 | CmdLBTRSSI::CmdLBTRSSI() |
jenkins@jenkinsdm1 | 17:95c9eb69329a | 4 | : |
jenkins@jenkinsdm1 | 17:95c9eb69329a | 5 | Command("LBT RSSI", "AT+LBTRSSI", "READ LBT RSSI", "(-128-0)") |
jenkins@jenkinsdm1 | 17:95c9eb69329a | 6 | { |
jenkins@jenkinsdm1 | 17:95c9eb69329a | 7 | _queryable = true; |
jenkins@jenkinsdm1 | 17:95c9eb69329a | 8 | } |
jenkins@jenkinsdm1 | 17:95c9eb69329a | 9 | |
jenkins@jenkinsdm1 | 17:95c9eb69329a | 10 | uint32_t CmdLBTRSSI::action(std::vector<std::string> args) |
jenkins@jenkinsdm1 | 17:95c9eb69329a | 11 | { |
jenkins@jenkinsdm1 | 17:95c9eb69329a | 12 | #ifdef DEBUG_MAC |
jenkins@jenkinsdm1 | 17:95c9eb69329a | 13 | CommandTerminal::Serial()->writef("%d\r\n", CommandTerminal::Dot()->lbtRssi()); |
jenkins@jenkinsdm1 | 17:95c9eb69329a | 14 | #endif |
jenkins@jenkinsdm1 | 17:95c9eb69329a | 15 | return 0; |
jenkins@jenkinsdm1 | 17:95c9eb69329a | 16 | } |
jenkins@jenkinsdm1 | 17:95c9eb69329a | 17 | |
jenkins@jenkinsdm1 | 17:95c9eb69329a | 18 | bool CmdLBTRSSI::verify(std::vector<std::string> args) |
jenkins@jenkinsdm1 | 17:95c9eb69329a | 19 | { |
jenkins@jenkinsdm1 | 17:95c9eb69329a | 20 | |
jenkins@jenkinsdm1 | 17:95c9eb69329a | 21 | return true; |
jenkins@jenkinsdm1 | 17:95c9eb69329a | 22 | } |