I just bought a Photon recently. After flashing a code in web IDE from a sample project (from hacksterio), the device just turned off and in the event spark/device/diagnostics/update, the status is: “unreachable”, the Photon is offline but still breath cyan. To solve this, I entered Safe Mode and was able to reprogram the device again.
As I suspect the problem in the code, my question is what kind of errors will lead to this problem. I have flashed some sample project in the particle tutorial but they all worked properly. For reference to the code that lead to the error, it is trying to interface to a web server as it has a SparkJson library included.
As my knowledge about web interface is limited, I hope someone can spark a light on this problem! Thanks in advance