Add auto-reconnect to Paho MQTT Client

This commit is contained in:
fvanroie 2022-10-12 14:47:50 +02:00
parent 56ae45dae2
commit 54b43a06cd

View File

@ -88,7 +88,7 @@ int mqttPublish(const char* topic, const char* payload, size_t len, bool retain)
void connlost(void* context, char* cause)
{
LOG_WARNING(TAG_MQTT, F(D_MQTT_DISCONNECTED) ": %s", cause);
LOG_WARNING(TAG_MQTT, F(D_MQTT_DISCONNECTED ": %s"), cause);
}
// Receive incoming messages