this is using the mbed os version 5-13-1

Dependencies:   mbed-http

Revision:
82:10072c1794d3
Parent:
81:637a87eb8170
Child:
84:7c7add00f4bf
--- a/source/WiFiManager.cpp	Sat Mar 23 16:28:34 2019 +0000
+++ b/source/WiFiManager.cpp	Sun Mar 24 17:32:06 2019 +0000
@@ -90,6 +90,7 @@
                 set_WIFI_CONFIG();
                 wifiCmd = WIFI_CMD_NONE;
                 queueATresponse(AT_CONFIG_RESP);
+                break;
             case WIFI_CMD_INTERNET_CONFIG:
                 set_internet_config();
                 wifiCmd = WIFI_CMD_NONE;
@@ -209,27 +210,31 @@
 void WiFiManager::set_WIFI_CONFIG()
 {
     wifi_config_t *wifi_cfg= (wifi_config_t *) data_msg->buffer;
-    set_WIFI_SSID(wifi_cfg->ssid);
-    set_WIFI_PASSWORD(wifi_cfg->pass);
-    set_WIFI_SECURITY(wifi_cfg->security);
+    if(wifi_cfg->ssid[0] != NULL)set_WIFI_SSID(wifi_cfg->ssid);
+    if(wifi_cfg->pass[0] != NULL)set_WIFI_PASSWORD(wifi_cfg->pass);
+    if(wifi_cfg->security != NSAPI_SECURITY_UNKNOWN)set_WIFI_SECURITY(wifi_cfg->security);
     free_DataMsg();
 }
 
 void WiFiManager::set_WIFI_SSID(char * wifi_ssid)
 {
     strcpy(wifi_config.ssid, wifi_ssid);
+    printf("[WIFI-MAN]  wifi_ssid set to %s\n", wifi_config.ssid);
+
 }
 
 
 void WiFiManager::set_WIFI_PASSWORD(char * wifi_pass)
 {
     strcpy(wifi_config.pass, wifi_pass);
+    printf("[WIFI-MAN]  wifi_pass set to %s\n", wifi_config.pass);
 }
 
 
 void WiFiManager::set_WIFI_SECURITY(nsapi_security_t wifi_security)
 {
     wifi_config.security = wifi_security;
+    printf("[WIFI-MAN]  wifi_security set to %s\n", sec2str(wifi_config.security));
 }