Arduino-Libraries icon indicating copy to clipboard operation
Arduino-Libraries copied to clipboard

Error reading a structure

Open aderiver opened this issue 11 years ago • 1 comments

Hi I am using WriteBlock () function to save a structure, everything works fine, but when I unplug the card and flip on the read data is not exactly what keep bringing but a kind of special characters

This is the code I use to save

String readString = "write,192.168.0.189,http://sisfo.com/temp.php,5"; configurationValue.ip = getValue(readString,',',1); configurationValue.url = getValue(readString,',',2); configurationValue.time = getValue(readString,',',3);
EEPROM.WriteBlock(1, configurationValue);

This is the code i use to read EEPROM.readBlock(1, configurationValueOut);

aderiver avatar Jun 03 '14 11:06 aderiver

Hmm, the code looks ok. I will investigate

thijse avatar Apr 19 '15 19:04 thijse