Photon Loss Connect Internet after 10 sec and Can't to DFU Mode and Listen Mode

Photon Loss Connect Internet after 10 sec and Can’t to DFU Mode and Listen Mode


Loss Connect Internet after 10 sec


Can’t to DFU Mode

The device is blinking yellow so that is DFU mode.

Can you place the device in Safe mode and see if it disconnects from wifi?

I think your original problem why you loose cloud connection is that your code does block(not service the cloud) for at least 10sec.
Make sure to call Particle.process() or drop out of loop() often enough.

As for DFU, follow Kenneth’s advice