Arduino-Libraries
Arduino-Libraries copied to clipboard
Error reading a structure
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);
Hmm, the code looks ok. I will investigate