this is using the mbed os version 5-13-1
Diff: source/ATCmdManager.h
- Revision:
- 80:e8f0e92e3ac9
- Parent:
- 79:a2187bbfa407
- Child:
- 81:637a87eb8170
--- a/source/ATCmdManager.h Wed Mar 20 21:02:47 2019 +0000
+++ b/source/ATCmdManager.h Thu Mar 21 22:17:28 2019 +0000
@@ -19,6 +19,12 @@
events::EventQueue &event_queue, WiFiManager *wifi,
MemoryPool<wifi_cmd_message_t, 16> *aT2WiFimPool,
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,
bool debug = false);
public:
void runMain();
@@ -36,8 +42,26 @@
ATCmdParser _parser;
SMDevicePeripheral *blePeripheral;
WiFiManager *wiFiManager;
+
+
+ /* 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;
+
+
// OOB processing
void _process_oob(uint32_t timeout, bool all);
// OOB message handlers