mirror of
https://github.com/tbnobody/OpenDTU.git
synced 2026-01-04 20:03:32 +01:00
Feature: Added config option to change MQTT CleanSession Flag
This commit is contained in:
@@ -81,6 +81,7 @@ struct CONFIG_T {
|
||||
char Mqtt_LwtValue_Online[MQTT_MAX_LWTVALUE_STRLEN + 1];
|
||||
char Mqtt_LwtValue_Offline[MQTT_MAX_LWTVALUE_STRLEN + 1];
|
||||
uint32_t Mqtt_PublishInterval;
|
||||
bool Mqtt_CleanSession;
|
||||
|
||||
bool Mqtt_Hass_Enabled;
|
||||
bool Mqtt_Hass_Retain;
|
||||
|
||||
@@ -74,6 +74,7 @@
|
||||
#define MQTT_LWT_ONLINE "online"
|
||||
#define MQTT_LWT_OFFLINE "offline"
|
||||
#define MQTT_PUBLISH_INTERVAL 5U
|
||||
#define MQTT_CLEAN_SESSION true
|
||||
|
||||
#define DTU_SERIAL 0x99978563412U
|
||||
#define DTU_POLL_INTERVAL 5U
|
||||
|
||||
Reference in New Issue
Block a user