From c372dcd95de411962921b30124bbb5ae871f119a Mon Sep 17 00:00:00 2001 From: Joe Tretter Date: Sat, 25 Jun 2022 21:20:08 -0500 Subject: [PATCH] enable initial sending of status on startup. --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index b831ea8..3a0f502 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -17,7 +17,7 @@ const char* mqtt_server = "mqtt.ddns.kawomi.com"; const int buttonPin = 4; // Reed switch - don't forget the pull down resistor. const int ledPin = 2; // Internal LED -boolean bForceResend=false; +boolean bForceResend=true; // send initial state to mqtt on startup. int previousState; WebServer server(80); WiFiClient espClient;