Closed calint closed 1 year ago
This is expected. Unfortunately the documentation was incorrect (#1702).
Only core 0 may run WiFi or related code (docs used to say "only one core"). There's an async process which handles LWIP sys_check_timeouts
on core 0 that could end up causing re-entrancy in upper layers of the libraries, causing random crashes as you see. You might just swap setup/loop
and setup1/loop1
and be okay assuming anything WiFi or TCP related is all on the one core.
Thank you for the quick reply.
I, of course, did not read the docs :) My bad.
I provide the sketch that reproduces the bug when running:
while true; do wget -qSO- http://X.X.X.X/status;done
Sketch:
secrets.h