DeeEmm / DIY-Flow-Bench

Volumetric flow bench based on ESP32 and MAF sensor.
GNU General Public License v3.0
27 stars 10 forks source link

Move configuration.h file into SPIFFS #195

Open DeeEmm opened 2 weeks ago

DeeEmm commented 2 weeks ago

The "GUI Firmware updates now possible" is great feature, but I think we need the ability to select all sensors at GUI configuration because firmware.bin files will be compiled with all default sensors ?

Originally posted by @black-top in https://github.com/DeeEmm/DIY-Flow-Bench/discussions/189#discussioncomment-11135934

@DeeEmm ...

Make the configuration file uploadable via the GUI. The only issue there is that at present the configuration file drives many pre-compile directives, which it obviously cannot do post-compile.

It would be possible to get rid of the pre-compile directives and just include everything within the compiled code. This would increase file size, but I don't think this would be an issue. It would however be a major re-write.

The configuration file would need to be changed into JSON format. It would then be handled the same as existing calibration and config files. This would also allow for pre-canned configuration files that cater for different hardware setups.

DeeEmm commented 2 weeks ago

Would also need to move pins.h from pre-compile to post-compile