AT command firmware for MultiTech Dot devices.
Fork of mDot_AT_firmware by
CmdResetCpu.cpp
00001 #include "CmdResetCpu.h" 00002 00003 CmdResetCpu::CmdResetCpu() : 00004 #if MTS_CMD_TERM_VERBOSE 00005 Command("Reset CPU", "ATZ", "Reset the CPU", "NONE") 00006 #else 00007 Command("ATZ") 00008 #endif 00009 { 00010 } 00011 00012 uint32_t CmdResetCpu::action(const std::vector<std::string>& args) 00013 { 00014 CommandTerminal::Serial()->writef("\r\nOK\r\n"); 00015 ThisThread::sleep_for(500ms); 00016 CommandTerminal::Dot()->resetCpu(); 00017 return 0; 00018 } 00019
Generated on Wed Dec 6 2023 19:34:05 by 1.7.2