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

Dependencies:   mbed-http

Revision:
95:290859010c8c
Parent:
93:06e755a80187
Child:
99:05398b3184f8
--- a/source/common_config.h	Sun Apr 14 17:03:02 2019 +0000
+++ b/source/common_config.h	Wed Apr 17 18:11:45 2019 +0000
@@ -13,7 +13,55 @@
 #endif
 #define USE_MALLOC_FOR_COMMAND_MEMORY_POOL
 #define WIFI_CONNECT_TIMEOUT_SECS 10
+#define MAX_RESPONSE_STRING_LEN   512 // maximum response string length of 512 bytes
+#define DEFAULT_WIFI_CHANNEL      0
+#define WIFI_LINK_ENABLED         "+UUWLE:"
+#define NETWORK_STATUS            "+UNSTAT="
+#define WIFI_NETWORK_STATUS       "+UWSSTAT="
+#define WIFI_STATION              1
+#define WIFI_CONFIG_ID            0
+#define WIFI_INTERFACE_ID         0
+#define DEFAULT_DNS_ADDRESS       "0.0.0.0"
 #define PQDSZ   2  // size of Pool/Queue data structures
+
+typedef enum
+{
+  IF_HW_ADDRESS = 0,
+  NETWORK_IF_STATUS = 1,
+  INTERFACE_TYPE = 2,
+  IPv4_ADDRESS = 101,
+  SUBNET_MASK = 102,
+  GATEWAY_ADDRESS = 103,
+  PRIMARY_DNS_SERVER = 104,
+  SECONDARY_DNS_SERVER = 105,
+  IPv6_ADDRESS = 201
+}net_stat_id_t;
+
+typedef enum
+{
+  WIFI_SSID = 0,
+  WIFI_BSSID = 1,
+  WIFI__CURRENT_CHANNEL = 2,
+  WIFI_STA_STATUS = 3,
+  WIFI_RSSI = 6
+}wifi_stat_id_t;
+
+const net_stat_id_t netStatusIds[]  =  {IF_HW_ADDRESS, NETWORK_IF_STATUS, 
+                                        INTERFACE_TYPE, IPv4_ADDRESS, 
+                                        SUBNET_MASK, GATEWAY_ADDRESS, 
+                                        PRIMARY_DNS_SERVER, SECONDARY_DNS_SERVER, 
+                                        IPv6_ADDRESS};
+                                        
+                                        
+const int NumNetworkStatus    = sizeof(netStatusIds)/sizeof(uint8_t);
+
+
+const wifi_stat_id_t wifiStatusIds[] = {WIFI_SSID, WIFI_BSSID, 
+                                        WIFI__CURRENT_CHANNEL, WIFI_STA_STATUS, 
+                                        WIFI_RSSI};
+
+const int NumWiFiStatus    = sizeof(wifiStatusIds)/sizeof(uint8_t);
+
 const uint8_t hello_msg[] = {0xaa,0x00,0x96,0x00,0x36,0x00,0x50,0x4f
                             ,0x53,0x54,0x20,0x2f,0x6e,0x75,0x64,0x67
                             ,0x65,0x62,0x6f,0x78,0x2f,0x76,0x31,0x20