OpenMQTTGateway icon indicating copy to clipboard operation
OpenMQTTGateway copied to clipboard

[Feature request] Store some BT parameters persistently in SPIFFS

Open BadWolf42 opened this issue 1 year ago • 1 comments

I also would like to know if you are interested in a PR, regarding writing persistently some BT parameters (set today on-the-fly by ZgatewayBT.ino: MQTTtoBT()) into SPIFFS (example in "/bt_config.json"), like it's done in main.ino: saveMqttConfig() for global config ?

BadWolf42 avatar Jul 15 '22 15:07 BadWolf42

Not sure if you are aware, there is a solution to retain the parameters by publishing those with the retain flag to the broker. This way, they are reloaded at the start of the gateway. Regarding retaining when the broker restart, I think there is a need for a special parameter in the broker configuration. Not sure of how this is easy with the controller to do, so your solution can be interesting also and maybe more intuitive.

1technophile avatar Jul 17 '22 09:07 1technophile

Done

1technophile avatar Apr 10 '23 17:04 1technophile