EEPROM help needed Solved


#1

Hi,

Need some help from the experts please.

I need to store a very long cell number between deep sleep intervals, but it seems
i will have to use a string to do it but are unsure how to do it.
for ex 279999999999999999 - actual length of number.

I tried a few options but the number is longer than any integer type i could find and
could not find an example where a string is used to read and write to and EEPROM
address.

Thanks in advance


#2

Hi,

Already answered in previous post,

use the EEPROM class1

for example: save it in a char array:

char cellNumber[32] = “27456985213”

EEPROM.put(0, cellNumber); // save it

EEPROM.get(0, cellNumber); // retrieve it