Create time out for Spark.connect()?

Yes… I believe he conflated things… The actual issue is code that runs for more than 20 seconds without calling delay() or Particle.process() is problematic as I understand it.

Hi @mdma, do you have any update regarding the use of multithreading, to avoid the user loop being blocked, when is used WiFi.connect() routine? I have tried the last firmware version, and it is still blocking (for about approx 5 seconds, get connected and have an IP address), every time i need to reconnect to the wifi.

Have you tried SYSTEM_THREAD(ENABLED)?

2 Likes

Hi @ScruffR, thats it! Thank you, its not blocking anymore!

2 Likes