B4R Question keeping information on eeprom

yaniv hanya

Active Member
Licensed User
Hello,

i use eeprom to save the username and password of wifi, using erel example.

now i need to keep wnother info (the keyboard situation- on or off. for cases of power off).
i need to "add" it to the previous info on the eeprom, without earesing it...

i can't understand how it wroks. can i keep it in another "HEADER" (in Erel example there is a header for SSID and password).

or should i read the previous info and then add it?

does any writing to eeprom erase all the info?
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
does any writing to eeprom erase all the info?
Not at all.

You can write it as a single byte, wherever you like. Just make sure that it is not at the beginning where the other values are stored.

The purpose of the MAGIC_EEPROM is to find out whether the data was already written once. You probably don't need it.
 
Upvote 0
Top