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:
- 124:eae4512b131b
- Parent:
- 123:a49e9ffbaca6
- Child:
- 125:d2830421006c
--- a/source/ATCmdManager.cpp Fri Jun 14 21:13:46 2019 +0000 +++ b/source/ATCmdManager.cpp Sat Jun 15 15:52:26 2019 +0000 @@ -145,6 +145,7 @@ at_resp = AT_RESP_NONE; break; case AT_CONNECT_RESP: + case WIFI_RECONNECT_INFO: { // AT_CONNECT_RESP response state dbg_printf(LOG, "\n [ATCMD MAN] WIFI CONNECT RESPONSE RECEIVED!!\r\n"); @@ -163,6 +164,10 @@ dbg_printf(LOG, "\n [ATCMD MAN] WIFI DISCONNECT RESPONSE RECEIVED!!\r\n"); respStr = (char *) resp_data->buffer; sendAtConfirmationFreeMpool(respStr); + char * urc = new char[20]; + sprintf(urc, "\r\n%s:%d\r\n", NETWORK_DOWN_URC, WIFI_INTERFACE_ID); + sendAtEvent(urc); + delete urc; at_resp = AT_RESP_NONE; break; case AT_CONFIG_RESP: @@ -776,7 +781,7 @@ { #ifdef MBED_MAJOR_VERSION char * fw_ver_str = new char[40]; - sprintf(fw_ver_str, "API version:%d.%d.%d.%d.%d.%d\n\n", MBED_MAJOR_VERSION + sprintf(fw_ver_str, "API version:%d.%d.%d.%d.%d.%dOK\r\n", MBED_MAJOR_VERSION , MBED_MINOR_VERSION , MBED_PATCH_VERSION , API_MAJOR_VERSION