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 libmDot mbed-rtos mbed-src
Fork of mDot_AT_firmware by
CmdIdentification.cpp
00001 #include "CmdIdentification.h" 00002 #include "version.h" 00003 00004 CmdIdentification::CmdIdentification(mDot* dot, mts::MTSSerial& serial) : Command(dot, "Request Id", "ATI", "Request Identification"), _serial(serial) 00005 { 00006 _help = std::string(text()) + ": " + std::string(desc()); 00007 } 00008 00009 uint32_t CmdIdentification::action(std::vector<std::string> args) 00010 { 00011 std::string version = AT_APPLICATION_VERSION; 00012 00013 _serial.writef("MultiTech mDot\r\n"); 00014 _serial.writef("Firmware: %s\r\n", version.c_str()); 00015 _serial.writef("Library : %s\r\n", _dot->getId().c_str()); 00016 00017 return 0; 00018 }
Generated on Tue Jul 12 2022 21:40:57 by
1.7.2
