Photon keeps going offline

Hello,

Today when I power up my Photon, it appeaed to be able to connect to WiFi, since the “Last Connection” time on the Console is updated. However it soon goes offline and I am unable to flash code. After a few hours this problem went away and I was able to flash code. Now the problem is back again.

I have tried Safe Mode as suggested in another thread, but no luck.

Any help will be appreciated.

Edit: I have just set up a brand new Photon and that one is working fine so far.

Thanks,
Ben

What colour is the RGB led flashing when the Photon is offline? Does placing it in Safe mode solve the issue?