I am using an ESP32 to do some data logging and post the data to the cloud. All well.
Now there is this requirement that a few parameters in the code need to be changed often :
- The data sampling rate
- The sensor(s) calibration data
In all about 5 such fields need to be changed by the user. The options for this are :
A. Provide a local LCD + 3 push buttons on the ESP32 unit and user can change as required and then we store that in flash. But the unit I have is a blind one with no displays ( battery powered and simple unit )
B. Upload code with changed variables via OTA. Right now I am doing this and its fine. But this needs me as the user cannot do it ( he does not know what ESP32 is )
C. Code the required Parameter fields into the Webserver on the ESP32. Once the Username / Password is cleared the next page loads with the parameter fields with the current values and the user has the chance to change them now. Once done he clicks UPLOAD to send the changed parameters to the ESP32. It gets them and saves them to flash and subsequently uses the new values.
I feel that the option C is the most elegant but I guess I will need to be a master in HTML / JSON / JavaScript or whatever ? Right ?? ( fact is don't even know for sure what language to use for doing what i intend to ) ![]()
Ideas / suggestions welcome ! Thanks.