MultiTech / Mbed OS mDot_AT_firmware_CUSTOM

Dependencies:   libmDot-Custom MTS-Serial

Fork of mDot_AT_firmware_CUSTOM by Jason Reiss

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers CmdIdentification.cpp Source File

CmdIdentification.cpp

00001 #include "CmdIdentification.h"
00002 #include "at_version.h"
00003 
00004 CmdIdentification::CmdIdentification() : Command("Request Id", "ATI", "Request Identification", "NONE")
00005 {
00006 }
00007 
00008 uint32_t CmdIdentification::action(std::vector<std::string> args)
00009 {
00010     std::string version = AT_APPLICATION_VERSION;
00011 #ifdef DEBUG_MAC
00012     version += "-debug";
00013 #endif
00014 #if defined(TARGET_MTS_MDOT_F411RE)
00015     CommandTerminal::Serial()->writef("MultiTech mDot\r\n");
00016 #else
00017     CommandTerminal::Serial()->writef("MultiTech xDot\r\n");
00018 #endif /* TARGET_MTS_MDOT_F411RE */
00019     CommandTerminal::Serial()->writef("Firmware: %s\r\n", version.c_str());
00020     CommandTerminal::Serial()->writef("Library : %s\r\n", CommandTerminal::Dot()->getId().c_str());
00021 
00022     return 0;
00023 }