Skip to content

Commit

Permalink
Increased debounceTime parameter to ensure that only one status updat…
Browse files Browse the repository at this point in the history
…e is published

Dramatically increased the debounceTime (50 to 5000ms) to ensure that only the first switch change is registered as a status change and published.
  • Loading branch information
marthoc committed Sep 5, 2017
1 parent 0280a40 commit c089cd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GarHAge.ino
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ int door1_lastStatusValue = 2;
int door2_lastStatusValue = 2;
unsigned long door1_lastSwitchTime = 0;
unsigned long door2_lastSwitchTime = 0;
int debounceTime = 50;
int debounceTime = 5000;

WiFiClient espClient;
PubSubClient client(espClient);
Expand Down

0 comments on commit c089cd9

Please sign in to comment.