![](/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
Diff: CommandTerminal/CmdIdentification.cpp
- Revision:
- 1:e52ae6584f1c
- Child:
- 14:f9a77400b622
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/CommandTerminal/CmdIdentification.cpp Thu Jun 25 10:23:41 2015 -0500 @@ -0,0 +1,18 @@ +#include "CmdIdentification.h" +#include "version.h" + +CmdIdentification::CmdIdentification(mDot* dot, mts::MTSSerial& serial) : Command(dot, "Request Id", "ATI", "Request Identification"), _serial(serial) +{ + _help = std::string(text()) + ": " + std::string(desc()); +} + +uint32_t CmdIdentification::action(std::vector<std::string> args) +{ + std::string version = AT_APPLICATION_VERSION; + + _serial.writef("MultiTech mDot\r\n"); + _serial.writef("Firmware: %s\r\n", version.c_str()); + _serial.writef("Library : %s\r\n", _dot->getId().c_str()); + + return 0; +}