Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: MTS-Serial libxDot-dev-mbed5-deprecated
Fork of Dot-AT-Firmware by
CommandTerminal/CmdIdentification.cpp
- Committer:
- Mike Fiore 
- Date:
- 2015-06-25
- Revision:
- 1:e52ae6584f1c
- Child:
- 14:f9a77400b622
File content as of revision 1:e52ae6584f1c:
#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;
}
            
    