Elmo Terminal provides functionality to test Lora radio and access SX1272 chip registers delivered with Elmo board. Also contains example ping-pong application.
Dependencies: SX1272lib mbed-src
Commands/GetVariableCmd.cpp@6:453b018a9ba0, 2015-10-01 (annotated)
- Committer:
- WGorniak
- Date:
- Thu Oct 01 13:13:08 2015 +0000
- Revision:
- 6:453b018a9ba0
- Parent:
- 2:8d8295a51f68
removed sstream from radiocontext
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
WGorniak | 2:8d8295a51f68 | 1 | #include <cstdlib> |
WGorniak | 2:8d8295a51f68 | 2 | #include "GetVariableCmd.h" |
WGorniak | 2:8d8295a51f68 | 3 | #include "dbg.h" |
WGorniak | 2:8d8295a51f68 | 4 | #include "Settings.h" |
WGorniak | 2:8d8295a51f68 | 5 | |
WGorniak | 2:8d8295a51f68 | 6 | GetVariableCmd::GetVariableCmd(Settings* settings) |
WGorniak | 2:8d8295a51f68 | 7 | : Cmd() |
WGorniak | 2:8d8295a51f68 | 8 | , settings_(settings) |
WGorniak | 2:8d8295a51f68 | 9 | { |
WGorniak | 2:8d8295a51f68 | 10 | } |
WGorniak | 2:8d8295a51f68 | 11 | |
WGorniak | 2:8d8295a51f68 | 12 | GetVariableCmd::~GetVariableCmd() |
WGorniak | 2:8d8295a51f68 | 13 | { |
WGorniak | 2:8d8295a51f68 | 14 | } |
WGorniak | 2:8d8295a51f68 | 15 | |
WGorniak | 2:8d8295a51f68 | 16 | string GetVariableCmd::cmd() |
WGorniak | 2:8d8295a51f68 | 17 | { |
WGorniak | 2:8d8295a51f68 | 18 | return "gv"; |
WGorniak | 2:8d8295a51f68 | 19 | } |
WGorniak | 2:8d8295a51f68 | 20 | |
WGorniak | 2:8d8295a51f68 | 21 | string GetVariableCmd::desc() |
WGorniak | 2:8d8295a51f68 | 22 | { |
WGorniak | 2:8d8295a51f68 | 23 | return "lists all variables"; |
WGorniak | 2:8d8295a51f68 | 24 | } |
WGorniak | 2:8d8295a51f68 | 25 | |
WGorniak | 2:8d8295a51f68 | 26 | bool GetVariableCmd::execute(list<string> args) |
WGorniak | 2:8d8295a51f68 | 27 | { |
WGorniak | 2:8d8295a51f68 | 28 | printf("%s", settings_->values().c_str()); |
WGorniak | 2:8d8295a51f68 | 29 | return true; |
WGorniak | 2:8d8295a51f68 | 30 | } |
WGorniak | 2:8d8295a51f68 | 31 | |
WGorniak | 2:8d8295a51f68 | 32 | string GetVariableCmd::getResponse(void) |
WGorniak | 2:8d8295a51f68 | 33 | { |
WGorniak | 2:8d8295a51f68 | 34 | return ""; |
WGorniak | 2:8d8295a51f68 | 35 | } |
WGorniak | 2:8d8295a51f68 | 36 |