How can I permanently store the numerical value of x and y in the ESP32 memory? Does it have to be there even if the ESP32 is turned off / on? Alternatively, how to reset, delete and print the value. Thank you very much.
We really need more context in order to answer the question
How frequently do you need to save x and y ?
One way to save values to be used after the ESP32 is turned off then on again would be to use SPIFFS. A Google search will find many explanations and examples
This will be the setting for specifying the points in the image, such as 145 and 550. That's it. Basically, it will be the initial setting that will be used all the time. Therefore, I wondered if the EEPROM is whether this is not an easier way when wifimanager stores the ssid and password wifi also in the EEPROM.
I would say yes, it does have to be there even if the esp is turned off and on. Otherwise it cannot be described as "permanent". Perhaps I am missing the point of your question?
Does anyone have a ready-made function for reading and writing json values to a file? It would help a lot. I have found this so far: SPIFFS read write json
I liked SPIFFS. I can store more things there, which I have permanently stored in the IDE script (URL address where to send data) and others. JSON is multi-data, so reading and writing could be easier within a single file.
Through SPIFFS I will create a file to which I can upload anything. However, if I reload the IDE code, the SPIFFS file will be deleted and the data will be lost. Is there a way to keep the stored data?
don't believe that's true.
in fact, you may need to encode a version into the file so that if you change the code there's a way to handle an older file format.