SmittyWerben#1
Member
Hello all,
I've got a project in progress and have been using the
AsyncWebServer_Teensy41 with a fair amount of success. One thing has been worrying me, though.
I have a process that is generating data on a timer, then when a web client causes a callback to the function I've registered with server.on(), I populate it with the data. I'm concerned about the underpinnings of the callback: Is that happening as an interrupt from the lwip code? Do I need to protect it with a mutex?
I'm not using threads, just your bog-standard setup and loop, along with a nice little timer functionality.
Thanks!
I've got a project in progress and have been using the
AsyncWebServer_Teensy41 with a fair amount of success. One thing has been worrying me, though.
I have a process that is generating data on a timer, then when a web client causes a callback to the function I've registered with server.on(), I populate it with the data. I'm concerned about the underpinnings of the callback: Is that happening as an interrupt from the lwip code? Do I need to protect it with a mutex?
I'm not using threads, just your bog-standard setup and loop, along with a nice little timer functionality.
Thanks!