mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-25 20:26:41 +00:00
Fix error in mqttServer.length()
This commit is contained in:
parent
81c8325574
commit
4ab91f890c
@ -313,7 +313,7 @@ void mqttStart()
|
|||||||
// }
|
// }
|
||||||
|
|
||||||
printf("%s %d\n", __FILE__, __LINE__);
|
printf("%s %d\n", __FILE__, __LINE__);
|
||||||
mqttEnabled = strlen(mqttServer) > 0 && mqttPort > 0;
|
mqttEnabled = mqttServer.length() > 0 && mqttPort > 0;
|
||||||
|
|
||||||
if(mqttEnabled) {
|
if(mqttEnabled) {
|
||||||
conn_opts.will = &will_opts;
|
conn_opts.will = &will_opts;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user