puterboy
puterboy
Weird... Now every time I reboot the esp32 device, it seems to crash and reboot itself every few 15-30 seconds for about 5-10 times until it finally stabilizes. It reboots...
Problem seems to be caused by the Mutex semaphore I wrapped around MQTT. Wrapping around `mqtt->publish` in `PubMQTT` works fine -- and indeed fixes the problem of corrupted discovery config...
I think I figured out the problem. Basically, the `mqtt` object has a property that executes `handle_autodiscovery()` which in turn calls `pubMQTT`. So basically you have the main thread, calling...
Please see PR to make this fix: https://github.com/1technophile/OpenMQTTGateway/pull/2034
Completed
No - as I detailed at length (maybe too much :)) in several new comments in https://github.com/1technophile/OpenMQTTGateway/issues/1996, a restart is triggered anyway since `discovery_prefix` is on the same WebUI page...
Not sure what is going on with lint - I though I (hand) corrected the spacing changes based on the diffs shown.
**NOTE THAT THIS PR IS SUPERSEDED BY https://github.com/1technophile/OpenMQTTGateway/pull/2035**
I will close this PR since superseded.
The version that works (dev branch from March 2024) interestingly uses a newer version of the library rtl_433_ESP (rtl_433_ESP.git#v0.3.2 than v175 (rtl_433_ESP.git#v0.3.1). The only seemingly significant differences (beyond spelling corrections...