Storing integer values in non volatile memory with KVStore

Hello,

I’m trying to use KVStore to save an enumerated system state between power cycles but it only allows me to write strings to memory. Is there an easy fix or workaround to read/write integers (and therefore enums) instead?

Many thanks.

1 Like