Closed
Description
I wanted to let others know that if you use a library that uses interrupts, those interrupt events may cause your ESP to crash if you call WiFi or WiFiClient functions and an interrupt happens while the call is in progress.
I experienced this with the excellent SoftwareSerial port from here: https://github.com/plerup/espsoftwareserial.
The solution was to add functions to the library to disable the interrupts and then call that disable function before calling the WiFi and Client functions, then re-enable interrupts after.
Hope this helps some who may be experiencing crashes that may be hard to stop or explain!