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/CmdNetworkJoinStatus.cpp@14:f9a77400b622, 2016-11-04 (annotated)
- Committer:
- Mike Fiore
- Date:
- Fri Nov 04 14:25:43 2016 -0500
- Revision:
- 14:f9a77400b622
- Parent:
- 1:e52ae6584f1c
update from git revision 2.0.16
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Mike Fiore |
1:e52ae6584f1c | 1 | #include "CmdNetworkJoinStatus.h" |
Mike Fiore |
1:e52ae6584f1c | 2 | |
Mike Fiore |
14:f9a77400b622 | 3 | CmdNetworkJoinStatus::CmdNetworkJoinStatus() : |
Mike Fiore |
14:f9a77400b622 | 4 | Command("Network Join Status", "AT+NJS", "0: Not joined, 1: Joined", "(0,1)") |
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 CmdNetworkJoinStatus::action(std::vector<std::string> args) |
Mike Fiore |
1:e52ae6584f1c | 10 | { |
Mike Fiore |
14:f9a77400b622 | 11 | CommandTerminal::Serial()->writef("%u\r\n", CommandTerminal::Dot()->getNetworkJoinStatus()); |
Mike Fiore |
1:e52ae6584f1c | 12 | return 0; |
Mike Fiore |
1:e52ae6584f1c | 13 | } |
Mike Fiore |
1:e52ae6584f1c | 14 | |
Mike Fiore |
14:f9a77400b622 | 15 |