variables name refactoring
This commit is contained in:
@@ -150,7 +150,7 @@ void MQTTwrapper::clientLoop(void *params)
|
||||
}
|
||||
if (client.state() != MQTT_CONNECTED)
|
||||
{
|
||||
LOG_ERROR("MQTT disconnect reason ", stateMap.at(client.state()));
|
||||
LOG_ERROR("MQTT disconnect reason ", stateMap.at(client.state()).c_str());
|
||||
vTaskDelay(pdMS_TO_TICKS(loopTime * 50));
|
||||
const bool ok = client.connect(clientName.c_str());
|
||||
LOG_WARN("MQTT reconnected", ok ? "True" : "False");
|
||||
|
||||
Reference in New Issue
Block a user