How do you share data between modules
Posted: Thu Dec 28, 2017 4:48 pm
Hello, this is my first post here.
I am in the middle of my ESP32 project where i mostly use Kolban's cpp libraries. All my different modules are almost done Web config using SPIFFS, Wifi, sensor readings, etc. Before trying to link them all i want to ask here how do you route the data from example sensor reading tasks to web client?
I am using WebSocketHandler in my code to read the WebSocket buffer in onMessage handle but WebSocketHandler class doesnt keep a reference to WebSocket or HttpServer classes. So either i should use static variables or queues between the different RTOS tasks.
Please give me some tips
I am in the middle of my ESP32 project where i mostly use Kolban's cpp libraries. All my different modules are almost done Web config using SPIFFS, Wifi, sensor readings, etc. Before trying to link them all i want to ask here how do you route the data from example sensor reading tasks to web client?
I am using WebSocketHandler in my code to read the WebSocket buffer in onMessage handle but WebSocketHandler class doesnt keep a reference to WebSocket or HttpServer classes. So either i should use static variables or queues between the different RTOS tasks.
Please give me some tips