[photon] how can dealing with router power failure?

This code works for me:

Basically it waits for Photon to connect to wifi, and will try to reconnect whenever wifi is lost. If wifi is lost it goes into listening mode, and will keep retrying to connect.

1 Like