cyberman54 / ESP32-Paxcounter

Wifi & BLE driven passenger flow metering with cheap ESP32 boards
https://cyberman54.github.io/ESP32-Paxcounter/
Other
1.75k stars 408 forks source link

Fetching config values via Wifi "OTA" update #185

Open hagenbuch opened 6 years ago

hagenbuch commented 6 years ago

While I think OTA flashing is a great idea, I am thinking about making the following:

After being flashed, the software must contain credentials for my (local) Wifi - or accept any unencrypted Wifi.

Then it makes a GET request to my webserver (HTTPS) sending its own MAC to fetch a specific configuration vector (maybe even with new Wifi data) including LoRa constants. Would be great if these could be flashed into flash memory.

Big advantage would be: If I deploy many devices, I can flash them all with the same firmware. Later in the field I may ask colleagues to just bring them into the vicinity of an open Wifi to be reconfigured.

So, I duplicate the Bintray code and go from there?

cyberman54 commented 6 years ago

The current OTA function is for proof of concept purpose. It has a can of desgin flaws and therefore should not be further developed;

etc.

You're very welcome to do start here and do some of the heavy lifting and make pull request!