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?
If you check the docs, you’ll notice there’s a function that does exactly that. I think it was ‘waitfor’. Have a look.
Perfect, thanks so much.