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

Dependencies:   mbed-http

Revision:
79:a2187bbfa407
Parent:
78:07bb86e3ce14
Child:
80:e8f0e92e3ac9
--- a/source/ATCmdManager.h	Sat Mar 16 13:05:52 2019 +0000
+++ b/source/ATCmdManager.h	Wed Mar 20 21:02:47 2019 +0000
@@ -1,5 +1,6 @@
 #ifndef __ATCMD_MANAGER_H__
 #define __ATCMD_MANAGER_H__
+#include <events/mbed_events.h>
 #include <mbed.h>
 #include "ATCmdParser.h"
 #include "BleManager.h"
@@ -15,7 +16,10 @@
 class ATCmdManager {
 public:
     ATCmdManager(PinName tx, PinName rx, SMDevicePeripheral *blePeripheral, 
-                 WiFiManager *wifi, bool debug = false);
+                 events::EventQueue &event_queue, WiFiManager *wifi, 
+                 MemoryPool<wifi_cmd_message_t, 16> *aT2WiFimPool, 
+                 Queue<wifi_cmd_message_t, 16> *aT2WiFiCmdQueue, 
+                 bool debug = false);
 public:
     void runMain();
 
@@ -26,11 +30,14 @@
     UARTSerial _serial;
     Mutex _smutex; // Protect serial port access
     Mutex _rmutex; // Reset protection
-
+    // define event queue
+    events::EventQueue &_event_queue;
     // AT Command Parser
     ATCmdParser _parser;
     SMDevicePeripheral *blePeripheral;
-    WiFiManager *wifi;
+    WiFiManager *wiFiManager;
+    MemoryPool<wifi_cmd_message_t, 16> *_aT2WiFimPool;
+    Queue<wifi_cmd_message_t, 16> *_aT2WiFiCmdQueue;
     // OOB processing
     void _process_oob(uint32_t timeout, bool all);
     // OOB message handlers
@@ -48,6 +55,11 @@
     void _oob_ena_ble_peri();
     void _oob_reboot();
     void _oob_get_fw_ver();
+    void _oob_scanWiFiNetworks();
+    void _oob_connect2WiFiNetwork();
+    void _oob_disconnectWiFiNetwork();
+    const char * sec2str(nsapi_security_t sec);
+    bool  queueWiFiCommand(wifi_cmd_t cmd);
     
     /**
     * Allows timeout to be changed between commands