I have code to write data into EEPROM,
when i write name_changecharater buffer into EEPROM its work.but when i write iBaseX and iBaseY its give error message ,how to solve this issue ?please help.
Thanks.
Please use code tags when you post code or warning/error messages. To do this, click the </> button on the forum toolbar, then paste the text you want to be in the code tags. Finally, move the cursor out of the code tags before adding any additional text you don't want to be in the code tags. If your browser doesn't show the posting toolbar, then you can manually add the code tags like this: [code]``[color=blue]// your code is here[/color]``[/code]
The reason for doing this is that, without code tags, the forum software can interpret parts of your code as markup (the italics in your code above, for example), leading to confusion, wasted time, and a reduced chance for you to get help with your problem. This will also make it easier for us to read your code and to copy it to the IDE or editor.
Using code tags and other important information is explained in the "How to use this forum" post. Please read it.
Look at the signature of your writeEEPROM function:
void writeEEPROM(int startAdr, int laenge, char* writeString) {
What makes you think you can pass a double to that function?
As I said, use EEPROM.put(). Did you bother to read the documentation at the links I provided?
Remember that on the ESP8266 you need to call EEPROM.commit() or EEPROM.end() before the data written to "EEPROM" actually gets stored in non-volatile memory: https://arduino-esp8266.readthedocs.io/en/2.6.2/libraries.html#eeprom
Your writeEEPROM function does this, but I feel obligated to mention it anyway since you don't seem to have any understanding of what that function actually does.