It seems that the implementation of retain memory is not clearly finalized on the Gen3 device (i’ve only tested this on Argon).
i got the same issues with my argon and the retain memory is not initialized at power on, so you need to manage this issue within your code.
Once initialized manually it seems to work as expected (retained during reset for example)
If i’m right the retained memory feature is even not documented in the Argon docs.
see this thread : Retained Memory Not Working Correctly
or
Retained memory support on Gen. 3 devices
i hope Particle will fix that soon as it’s a bit annoying.
Nico