Hi,
I am having problem getting the right amount of bytes from the EEprom. Below is a snip of the code that I am trying to run.
char heatSched[232];
char coolSched[232];
void setup()
{
EEPROM.get(0, heatSched);
Serial.printlnf("heatSched (from setup) is: %s", heatSched);
Serial.printlnf("heatSched length is %d",String(heatSched).length());
delay(3000);
EEPROM.get(232, coolSched);
Serial.printlnf("coolSched (from setup) is: %s", coolSched);
Serial.printlnf("coolSched length is %d",String(coolSched).length());
delay(3000);
}
output:
>particle serial monitor
Opening serial monitor for com port: "COM3"
System firmware version: 0.6.0
heatSched (from setup) is: ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������
heatSched length is 233
coolSched (from setup) is: ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������
coolSched length is 232
From the above output, when I did the EEPROM.get(0, heatSched); its getting 233 bytes. Any one know why this is happening? Thanks