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
- Branch:
- PassingRegression
- Revision:
- 114:b11bb96c09f3
- Parent:
- 112:a0999ea4ece0
- Child:
- 117:8fd05113efc1
--- a/source/ATCmdManager.cpp Sat May 18 10:50:49 2019 +0000 +++ b/source/ATCmdManager.cpp Sat May 18 15:44:48 2019 +0000 @@ -2,6 +2,7 @@ #include "ATCmdManager.h" #include "common_config.h" #include "common_types.h" +#include "main.h" #include "http_request.h" #include "mbed_memory_status.h" //#include "mbed_memory_status.h" @@ -71,7 +72,7 @@ //_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,0,0", callback(this, &ATCmdManager::_oob_ok_hdlr)); + _parser.oob("AT+UWSC=0,0,0", callback(this, &ATCmdManager::_oob_enable_wifi)); _parser.oob("AT+UWSC=0,2", callback(this, &ATCmdManager::_oob_setWiFiSSID)); _parser.oob("AT+UWSC=0,8", callback(this, &ATCmdManager::_oob_setWiFiPWD)); _parser.oob("AT+UWSC=0,5", callback(this, &ATCmdManager::_oob_setWiFiSecurity)); @@ -651,6 +652,11 @@ void ATCmdManager::_oob_conn_already(){ } +void ATCmdManager::_oob_enable_wifi() +{ + trigger_start_WiFi(); + sendAtConfirmation(OK_RESP); +} void ATCmdManager::_oob_err(){ } @@ -772,6 +778,7 @@ } void ATCmdManager::_oob_ena_ble_peri(){ + trigger_start_BLE(); dbg_printf(LOG, "\n Received enable BLE Peripheral command!!\n"); sendAtConfirmation(OK_RESP); //_parser.send(OK_RESP); }