From 80dade00fe1fef1e60975187df5bc75ad7244fff Mon Sep 17 00:00:00 2001 From: hsaturn Date: Mon, 5 Apr 2021 13:54:09 +0200 Subject: [PATCH] Avoid unitialized values --- src/TinyMqtt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TinyMqtt.h b/src/TinyMqtt.h index 723d24e..f2e52ca 100644 --- a/src/TinyMqtt.h +++ b/src/TinyMqtt.h @@ -202,7 +202,7 @@ class MqttClient bool mqtt_connected = false; char mqtt_flags; - uint32_t keep_alive; + uint32_t keep_alive = 60; uint32_t alive; MqttMessage message;