- Recreate MQTT client on reconnect to apply broker/auth/TLS changes reliably - Restart loop on new MQTT client instance after reconnect - Track loop lifecycle to avoid stale client state - Include MQTT section in initial ConfigServer current_config state - Keep /config response consistent with persisted /data/config-active.yaml after restart Result: - Broker switches via Odoo push now connect reliably (including TLS/non-TLS changes) - Bridge startup + persisted config reload now exposes mqtt data correctly via GET /config - Event flow MQTT -> Bridge -> Odoo remains stable after container restarts |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| bootstrap.py | ||
| device_manager.py | ||
| event_queue.py | ||
| service_manager.py | ||
| session_detector.py | ||