From a4d496f92ba67d50beb46e3b8a6c0b88830874be Mon Sep 17 00:00:00 2001 From: technyon Date: Sat, 31 Dec 2022 15:14:11 +0100 Subject: [PATCH] change mqttlogger mode --- networkDevices/W5500Device.cpp | 2 +- networkDevices/WifiDevice.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/networkDevices/W5500Device.cpp b/networkDevices/W5500Device.cpp index 74baf64..f4e0dc4 100644 --- a/networkDevices/W5500Device.cpp +++ b/networkDevices/W5500Device.cpp @@ -51,7 +51,7 @@ void W5500Device::initialize() String pathStr = _preferences->getString(preference_mqtt_lock_path); pathStr.concat(mqtt_topic_log); strcpy(_path, pathStr.c_str()); - Log = new MqttLogger(*_mqttClient, _path); + Log = new MqttLogger(*_mqttClient, _path, MqttLoggerMode::MqttAndSerial); } reconnect(); diff --git a/networkDevices/WifiDevice.cpp b/networkDevices/WifiDevice.cpp index 5de0ff4..dfe2f14 100644 --- a/networkDevices/WifiDevice.cpp +++ b/networkDevices/WifiDevice.cpp @@ -49,7 +49,7 @@ WifiDevice::WifiDevice(const String& hostname, Preferences* _preferences) String pathStr = _preferences->getString(preference_mqtt_lock_path); pathStr.concat(mqtt_topic_log); strcpy(_path, pathStr.c_str()); - Log = new MqttLogger(*_mqttClient, _path); + Log = new MqttLogger(*_mqttClient, _path, MqttLoggerMode::MqttAndSerial); } }