Connect to Cloud with timout

Hi Everyone,
For my project, the photons use SEMI_AUTOMATIC mode and then connect to WiFi just locally (LAN). Periodically I would like them to check for internet access if available, if not successful return back after a timeout?
How could i achieve this?
Thanks
Andy

If you check the docs, you’ll notice there’s a function that does exactly that. I think it was ‘waitfor’. Have a look.

2 Likes

Perfect, thanks so much.