revk/SolarSystem

Better MQTT setup as part of provisioning

Closed this issue · 1 comments

revk commented

In line with easier provisioning, allow insecure 1883 which simple sends the setting for secure connect (mqttcert) to get a reconnect.

Yes this opens man in the middle but as the next stage to assign a client cert should only be done from trusted local IP this should be pretty safe.

it allows simple set up from WiFi AP mode without knowing the cert and simple deport to other controller (which does not set a cert).

revk commented

Obviously change default factory reset of ESP32 to expect this (as well as allowing AP mode)