i am looking for information about persistent variables. I made a program which declare some persistent variables. Everything work fine and when the device shutdown and restart, the variable are indeed persistent in the right way. When i change the program (not the PersistentVars) and upload the new program to the device, the persistent variables are not restored as expected : not always, depending on the modification i made to the programe.
I had try a lot a things but do not understand why when i made a change to the program, sometime the persistent variables restart from 0 (persistent lost) and sometime the persistent variables keep its latest value.
Does someone can help me understand if this behaviour is correct or not ?
👍
1
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
i am looking for information about persistent variables. I made a program which declare some persistent variables. Everything work fine and when the device shutdown and restart, the variable are indeed persistent in the right way. When i change the program (not the PersistentVars) and upload the new program to the device, the persistent variables are not restored as expected : not always, depending on the modification i made to the programe.
I had try a lot a things but do not understand why when i made a change to the program, sometime the persistent variables restart from 0 (persistent lost) and sometime the persistent variables keep its latest value.
Does someone can help me understand if this behaviour is correct or not ?
more posts ...
Hi, did you get any solution for this.