AT command firmware for MultiTech Dot devices.
Fork of mDot_AT_firmware by
CmdBeaconLockStatus.cpp
00001 #include "CmdBeaconLockStatus.h" 00002 00003 CmdBeaconLockStatus::CmdBeaconLockStatus() : 00004 #if MTS_CMD_TERM_VERBOSE 00005 Command("Beacon Lock Status", "AT+BLS", "Get the lock status of the beacon (0: not locked, 1: locked)", "NONE") 00006 #else 00007 Command("AT+BLS") 00008 #endif 00009 { 00010 _queryable = true; 00011 } 00012 00013 uint32_t CmdBeaconLockStatus::action(const std::vector<std::string>& args) { 00014 if (args.size() == 1) { 00015 CommandTerminal::Serial()->writef("%u\r\n", 00016 CommandTerminal::Events()->BeaconLocked ? 1 : 0); 00017 } 00018 00019 return 0; 00020 }
Generated on Wed Dec 6 2023 19:34:05 by 1.7.2