
AT command interface for mdot forced to asia interfaces
Dependencies: MTS-Serial libmDot-mbed5
Fork of Dot-AT-Firmware by
CommandTerminal/CmdTxNextMs.cpp@19:79c906b2c53c, 2018-05-01 (annotated)
- Committer:
- brettsawyers
- Date:
- Tue May 01 01:40:37 2018 +0000
- Revision:
- 19:79c906b2c53c
- Parent:
- 14:f9a77400b622
uploading to team
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Mike Fiore |
1:e52ae6584f1c | 1 | #include "CmdTxNextMs.h" |
Mike Fiore |
1:e52ae6584f1c | 2 | |
Mike Fiore |
14:f9a77400b622 | 3 | CmdTxNextMs::CmdTxNextMs() |
Mike Fiore |
14:f9a77400b622 | 4 | : Command("Tx Next", "AT+TXN", "Get time in ms until next free channel", "(0-2793000)") { |
Mike Fiore |
1:e52ae6584f1c | 5 | _queryable = true; |
Mike Fiore |
1:e52ae6584f1c | 6 | } |
Mike Fiore |
1:e52ae6584f1c | 7 | |
Mike Fiore |
1:e52ae6584f1c | 8 | uint32_t CmdTxNextMs::action(std::vector<std::string> args) { |
Mike Fiore |
1:e52ae6584f1c | 9 | |
Mike Fiore |
14:f9a77400b622 | 10 | CommandTerminal::Serial()->writef("%lu\r\n", CommandTerminal::Dot()->getNextTxMs()); |
Mike Fiore |
1:e52ae6584f1c | 11 | return 0; |
Mike Fiore |
1:e52ae6584f1c | 12 | } |
Mike Fiore |
1:e52ae6584f1c | 13 | |
Mike Fiore |
1:e52ae6584f1c | 14 | bool CmdTxNextMs::verify(std::vector<std::string> args) { |
Mike Fiore |
1:e52ae6584f1c | 15 | |
Mike Fiore |
1:e52ae6584f1c | 16 | if (args.size() > 1) |
Mike Fiore |
1:e52ae6584f1c | 17 | return false; |
Mike Fiore |
1:e52ae6584f1c | 18 | |
Mike Fiore |
1:e52ae6584f1c | 19 | return true; |
Mike Fiore |
1:e52ae6584f1c | 20 | } |