From 4ab91f890c729efcee8eeaf1dfd7e1f5eadfda07 Mon Sep 17 00:00:00 2001 From: fvanroie <15969459+fvanroie@users.noreply.github.com> Date: Sun, 2 May 2021 06:51:55 +0200 Subject: [PATCH] Fix error in mqttServer.length() --- src/mqtt/hasp_mqtt_paho_single.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mqtt/hasp_mqtt_paho_single.cpp b/src/mqtt/hasp_mqtt_paho_single.cpp index 816b4035..4113eece 100644 --- a/src/mqtt/hasp_mqtt_paho_single.cpp +++ b/src/mqtt/hasp_mqtt_paho_single.cpp @@ -313,7 +313,7 @@ void mqttStart() // } printf("%s %d\n", __FILE__, __LINE__); - mqttEnabled = strlen(mqttServer) > 0 && mqttPort > 0; + mqttEnabled = mqttServer.length() > 0 && mqttPort > 0; if(mqttEnabled) { conn_opts.will = &will_opts;