Okundu Omeni
/
wifi-https-ble-sm-uart-atcmd-5-13-1
this is using the mbed os version 5-13-1
Diff: source/WiFiManager.h
- Revision:
- 80:e8f0e92e3ac9
- Parent:
- 79:a2187bbfa407
- Child:
- 81:637a87eb8170
--- a/source/WiFiManager.h Wed Mar 20 21:02:47 2019 +0000 +++ b/source/WiFiManager.h Thu Mar 21 22:17:28 2019 +0000 @@ -21,7 +21,13 @@ public: WiFiManager(wifi_config_t wifi_config, WiFiInterface *wifi, MemoryPool<wifi_cmd_message_t, 16> *aT2WiFimPool, - Queue<wifi_cmd_message_t, 16> *aT2WiFiCmdQueue); + Queue<wifi_cmd_message_t, 16> *aT2WiFiCmdQueue, + MemoryPool<wifi_cmd_message_t, 16> *wiFi2ATmPool, + Queue<wifi_cmd_message_t, 16> *wiFi2ATCmdQueue, + MemoryPool<wifi_data_msg_t, 4> *aT2WiFiDatamPool, + Queue<wifi_data_msg_t, 4> *aT2WiFiDataQueue, + MemoryPool<wifi_data_msg_t, 4> *wiFi2ATDatamPool, + Queue<wifi_data_msg_t, 4> *wiFi2ATDataQueue); ~WiFiManager(); nsapi_size_or_error_t scanNetworks(); nsapi_size_or_error_t getAvailableAPs(WiFiAccessPoint * res, @@ -57,9 +63,24 @@ HttpResponse* http_response; nsapi_size_or_error_t lastScanCount; wifi_cmd_t wifiCmd; + /* Queue and memory pool for AT to Wifi commands */ MemoryPool<wifi_cmd_message_t, 16> *_aT2WiFimPool; Queue<wifi_cmd_message_t, 16> *_aT2WiFiCmdQueue; + /* Queue and memory pool for WiFi to AT commands */ + MemoryPool<wifi_cmd_message_t, 16> *_wiFi2ATmPool; + Queue<wifi_cmd_message_t, 16> *_wiFi2ATCmdQueue; + + /* Queue and memory pool for AT to WiFi data */ + MemoryPool<wifi_data_msg_t, 4> *_aT2WiFiDatamPool; + Queue<wifi_data_msg_t, 4> *_aT2WiFiDataQueue; + + + /* Queue and memory pool for WiFi to AT data */ + MemoryPool<wifi_data_msg_t, 4> wiFi2ATDatamPool; + Queue<wifi_data_msg_t, 4> wiFi2ATDataQueue; + + /** * Allows timeout to be changed between commands *