Doing classes and a nice OTA update
Separeted the buttons from main.cpp, fixed a bug when updating settings and more.
Mote OTA, more bugs
You’ve got a nice row of LEDs, so why not turn that into a nice OTA update?
It wasn’t that difficult, you just have to remember that the OTA update is separate from the loop() function, so the code in the Jet class that’s called within loop() is out of the picture, which makes it a lot easier.
I then spotted a small error on the web page: otapassword isn’t included in /api/status, so you shouldn’t enter it on the page either.
If you’re doing an update like that, it might also be handy to make it active straight away, luckily there are setters, so it was easy to add there.
Oh, and if you think you’ve set your log level to debug in the config, you’ll obviously need to pass that level on to the ESP as well.