SaveState(): How to save and load bigger value



  • Hi,
    i have build an water flow sensor and want to save the total flow value in mL in the eeprom.
    Is there a way to use the saveState and loadState from MySensors v2.0? The value will grow a long number, so it´s not only a "state" like 0/1 from switch/relay.

    Thanks and best regards,
    vga


  • Mod

    @vga see the last three posts in this thread for information on how to save values that need more than one byte.


  • Admin

    @vga,
    Just watch out writing too frequently to the poor EEPROM.


Log in to reply
 

Looks like your connection to MySensors Forum was lost, please wait while we try to reconnect.