Okundu Omeni
/
wifi-https-ble-sm-uart-atcmd-5-13-1
this is using the mbed os version 5-13-1
Diff: source/ATCmdManager.cpp
- Revision:
- 102:9748f290a1a5
- Parent:
- 100:80ef4bc31b7a
- Child:
- 103:7b566b522427
--- a/source/ATCmdManager.cpp Mon Apr 22 19:36:31 2019 +0000 +++ b/source/ATCmdManager.cpp Wed Apr 24 17:34:17 2019 +0000 @@ -55,6 +55,16 @@ _parser.oob("AT+CGMR", callback(this, &ATCmdManager::_oob_get_fw_ver)); _parser.oob("AT+UWSCAN", callback(this, &ATCmdManager::_oob_scanWiFiNetworks)); _parser.oob("AT+UWSCA=", callback(this, &ATCmdManager::_oob_WiFiStationConfigAction)); + + _parser.oob("AT+UMLA=", callback(this, &ATCmdManager::_oob_ok_hdlr)); + _parser.oob("AT+UBTLN", callback(this, &ATCmdManager::_oob_ok_hdlr)); + _parser.oob("AT+UBTSM?", callback(this, &ATCmdManager::_oob_ok_hdlr)); + _parser.oob("AT+UBTPM", callback(this, &ATCmdManager::_oob_ok_hdlr)); + + _parser.oob("AT+UDSC=", callback(this, &ATCmdManager::_oob_ok_hdlr)); + _parser.oob("AT&W", callback(this, &ATCmdManager::_oob_ok_hdlr)); + //_parser.oob("AT+UBTPM", callback(this, &ATCmdManager::_oob_ok_hdlr)); + //_parser.oob("AT+UBTPM", callback(this, &ATCmdManager::_oob_ok_hdlr)); //_parser.oob("AT+UWSCD=", callback(this, &ATCmdManager::_oob_disconnectWiFiNetwork)); _parser.oob("AT+UDDRP", callback(this, &ATCmdManager::_oob_setupInternetConnection)); _parser.oob("AT+UWSC=0,2", callback(this, &ATCmdManager::_oob_setWiFiSSID)); @@ -581,6 +591,12 @@ void ATCmdManager::_oob_get_fw_ver() { +#ifdef MBED_MAJOR_VERSION + char * fw_ver_str = new char[20]; + sprintf(fw_ver_str, "Mbed OS version %d.%d.%d.0\n\n", MBED_MAJOR_VERSION, MBED_MINOR_VERSION, MBED_PATCH_VERSION); + sendAtConfirmation(fw_ver_str); + delete fw_ver_str; +#endif }