enable initial sending of status on startup.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user