add lwt topic

This commit is contained in:
technyon
2023-03-27 18:46:07 +02:00
parent 44ad2dd320
commit ddf70f5d8a
10 changed files with 51 additions and 5 deletions

View File

@@ -6,6 +6,7 @@
#include "networkDevices/NetworkDevice.h"
#include "MqttReceiver.h"
#include "networkDevices/IPConfiguration.h"
#include "MqttTopics.h"
enum class NetworkDeviceType
{
@@ -99,6 +100,10 @@ private:
void buildMqttPath(const char* prefix, const char* path, char* outPath);
static Network* _inst;
const char* _mqttConnectionStateTopic = mqtt_topic_mqtt_connection_state;
const char* _lastWillPayload = "offline";
Preferences* _preferences;
IPConfiguration* _ipConfiguration = nullptr;
String _hostname;