We would like to place colored stickers on our sensor and persist the color information (could be a number 0..5) on the sensor.
I tried setting the name, but the device forgets its name after the battery due to power off while being completely discharged.
Comments
You need to use the macro system.
Thanks for your answer. Would you mind to elaborate on using a macro to store data?
Please see our tutorials for this information.
I have browsed through the tutorial
and read through the API
but I do not see how a macro could solve my problem.
What I need is a method to store a string or just a number with the device which I can read on the next connection.
Is it possible to set and persist the name of the device, even after the battery has drained?
Use macros to persist the device name.