ESP32 Dual Core Wifi ?
Posted: Fri Nov 03, 2023 10:08 pm
I am working on an ESP32 based data logger (Only temperature in the first instance.) It takes a reading and POSTs it as JSON to a server - all working fine. Now I want to add a HTML server on the ESP32, so a user can browse to the device and see a table of readings for the sensor. I have been using the ESP32 Arduino classes, but I'm going to switch to IDF and RTOS - I prefer to use RTOS.
I was wondering what would happen if the device was in the middle of the POST (Takes about 1 to 2 seconds.) when a user tried to connect on an incoming HTTP call. Would it get dropped? Or does the WiFi HTTP Server class buffer such data.
But my real question is, would it be feasible (even advisable) to run the HTTP Client code (Responsible for POSTing out data) on 1 core, and the HTTP Server on another? Would the cores share the WiFi hardware nicely? I realise it's probably way overkill, but I'm in big time learn mode here (New to ESP32 - plenty of experience with NXP)
Hope someone might have some experience / opinions here that you might share. Thanks.
I was wondering what would happen if the device was in the middle of the POST (Takes about 1 to 2 seconds.) when a user tried to connect on an incoming HTTP call. Would it get dropped? Or does the WiFi HTTP Server class buffer such data.
But my real question is, would it be feasible (even advisable) to run the HTTP Client code (Responsible for POSTing out data) on 1 core, and the HTTP Server on another? Would the cores share the WiFi hardware nicely? I realise it's probably way overkill, but I'm in big time learn mode here (New to ESP32 - plenty of experience with NXP)
Hope someone might have some experience / opinions here that you might share. Thanks.