To break down my question here is my use case.
I have numerous ESP8226 devices deployed in the wild, all using a HX711 ADC to track weight, and send that weight to my server to store in a database.
Each ESP device pings my server to see if a new version of the sketch is available periodically. This OTA update is happening via the ESPHttpUpdate library.
The part I am having trouble with is that each HX711 ADC board is unique and requires a calibration factor specific to that individual HX711 board. To accommodate for this and still provide OTA updates would require me to track each Hx711 board's calibration factor and compile a new binary file for EACH ESP with that specific calibration factor baked into the sketch. Then make that specific sketch available to the board when it requests an OTA update.
As the number of ESP devices grows in number that would require a larger and larger number of compiled sketches to be stored for each device rather than one sketch that can be provided to all ESP boards OTA.
Was hoping someone would have some advice on a way to accommodate for this.
Would using RTC mem or storing that calibration factor in SPIFFS be a reasonable to handle this?
Any advice is greatly appreciated!