add MqttLogger

This commit is contained in:
technyon
2022-12-23 22:32:57 +01:00
parent 7674e2a08d
commit 7ee197e827
15 changed files with 447 additions and 45 deletions

View File

@@ -1,6 +1,7 @@
#include <WiFi.h>
#include "WifiDevice.h"
#include "../PreferencesKeys.h"
#include "../Logger.h"
RTC_NOINIT_ATTR char WiFiDevice_reconfdetect[17];
@@ -38,6 +39,8 @@ WifiDevice::WifiDevice(const String& hostname, Preferences* _preferences)
_wifiClient = new WiFiClient();
_mqttClient = new PubSubClient(*_wifiClient);
}
Log = new MqttLogger(*_mqttClient, "nuki/log");
}
PubSubClient *WifiDevice::mqttClient()