hortinstein / node-dash-button

A small module to emit events when an Amazon Dash Button is pressed
949 stars 94 forks source link

Amazon IoT dash button triggers twice #43

Closed grosen closed 7 years ago

kclack commented 8 years ago

The 3rd value in the dash_button() function is the timeout for looking for requests after the last press. By default, it is set to 5 seconds. After finding out how long it is before another trigger happens on your network, I'd recommend setting the timeout a little higher. From the readme, here is it set for 1 minute (value is in milliseconds)

var dash = dash_button("your : dash : mac", null, 60000, 'all');

hortinstein commented 7 years ago

Thanks