This commit is contained in:
CaCO3
2022-10-27 13:13:23 +02:00
parent c4bbd7c545
commit 32748e3182
7 changed files with 3 additions and 18 deletions

View File

@@ -11,7 +11,6 @@ static const char *TAG_INTERFACEMQTT = "interface_mqtt";
std::map<std::string, std::function<void()>>* connectFunktionMap = NULL;
std::map<std::string, std::function<bool(std::string, char*, int)>>* subscribeFunktionMap = NULL;
bool debugdetail = true;
// #define CONFIG_BROKER_URL "mqtt://192.168.178.43:1883"
@@ -31,7 +30,7 @@ bool MQTTPublish(std::string _key, std::string _content, int retained_flag){
return false;
}
zw = "MQTT - sent publish successful in MQTTPublish, msg_id=" + std::to_string(msg_id) + ", " + _key + ", " + _content;
if (debugdetail) LogFile.WriteToFile(ESP_LOG_INFO, zw);
LogFile.WriteToFile(ESP_LOG_INFO, zw);
return true;
}