The first difference i notice, is
What is the meaning of the last parameter true/false?
The most important difference is that my read procedure is in another scope: setup:().
Will your code work, if the
were located in setup()?
This is the very purpose of a persistence feature: to work across resets.
Regards and thank you for considering.
P.S: I have done the following:
in Setup I wrote:
getPersistance = true;
In loop() I wrote:
getPersistance = false;
outdoor_temperature = persistance[“temperature”];
outdoor_humidity = persistance[“humidity”];
outdoor_pressure = persistance[“pressure”];
I can’t explain why, but it seems to work that way, I will be sure after an overnight run.
Anyhow, thing.get_property() should work in setup() with uninitialised variables, before a thing.set_property() has run, as well.