tooyipjee / Spark-Analyzer

USB-PD ESP32 Power Analyzer
MIT License
118 stars 22 forks source link

start without wifi #9

Open doniks opened 3 months ago

doniks commented 3 months ago

SA blocks during boot when the previously configured wifi is not available. This is rather inconvenient. I'd rather have it:

  1. offer the access point mode when we cannot make a wifi connection (either never configured or wifi out of reach)
  2. provide the power output if it has been configured previously.
doniks commented 3 months ago

As far as I can see, right now we're using a blocking call wifiManager.autoConnect()

instead we should rather attempt to connect in a non-blocking way similar to this: https://github.com/tzapu/WiFiManager/tree/master/examples/NonBlocking

and make sure that output is only enabled if that has previously been configured (I think that's the case anyway)