This mDot firmware will allow USB to directly utilize AT command without the need the use of RS232 DB9 port.

Dependencies:   MTS-Serial libmDot mbed-rtos mbed

Fork of mDot_USB_AT_firmware by Hadi Ho

CommandTerminal/CmdIdentification.cpp

Committer:
ahario
Date:
2016-10-19
Revision:
14:eecf7851d6ff
Parent:
1:e52ae6584f1c

File content as of revision 14:eecf7851d6ff:

#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;
}