enable initial sending of status on startup.

This commit is contained in:
Joe Tretter
2022-06-25 21:20:08 -05:00
parent 2ae3bf85a5
commit c372dcd95d

View File

@@ -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;