I am encountering issues with the deep sleep mode with persistence of variables. The documentations states:
Note: The new Particle Photon firmware will not reset before going into stop mode so all the application variables are preserved after waking up from this mode.
However, in my test I have one variable declared that is initialized with analogRead() the first time around (if variable == 0). The sleep mode is activated with following in setup()
In 60 seconds, when the device wakes up, the value in the variable is reset to 0.
Am I interpreting the documentation wrong?