Specifically, do not deactive autodiscovery in certain cases
when discovery_republish_on_reconnect is enabled
Signed-off-by: Sami Salonen <ssalonen@gmail.com>
* Log Theengs props deserilization failures
Now we log failing theengs json props deserialization failures.
Note: the rest of the function implementation is kept as is, with
no null/data-validity checks, and it is likely to encounter a crash
later in the strcmp conditionals like in #1905.
Related to #1905
Signed-off-by: Sami Salonen <ssalonen@gmail.com>
* formatting fix for logging
Signed-off-by: Sami Salonen <ssalonen@gmail.com>
---------
Signed-off-by: Sami Salonen <ssalonen@gmail.com>
* Handle OTA actively when MQTT is not connected
Resolves#1292
* Fix compilation for targets not having OTA
* ArduinoOTA.handle() only with non-ESP targets
* OTA check before reboot: fix condition and add more comments
Signed-off-by: Sami Salonen <ssalonen@gmail.com>
* Re-publish BTtoMQTT Theengs discovery topics on MQTT re-connect
- Improved version of #1274, this should re-publish more
- Handle return value of (MQTT) client.loop() to detect connection loss
faster
Signed-off-by: Sami Salonen <ssalonen@gmail.com>