Skip to content

Commit b895a17

Browse files
author
QuickSander
committed
fix: Increased default timeout to 10s instead of 5s.
1 parent 91c5e29 commit b895a17

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ remove the brightness component from the config.
170170
| `accessory` | Must be "HttpPushRgb" | |
171171
| `name` | The name of your RGB accessory. It will appear in the Home app | "RGB Light" |
172172
| `service` | `"Light"` or `"Switch"` | |
173-
| `timeout` _(optional)_ | Time (in milli seconds) until the accessory will be marked as "Not Responding" if it is unreachable.| 5000 |
173+
| `timeout` _(optional)_ | Time (in milli seconds) until the accessory will be marked as "Not Responding" if it is unreachable.| 10000 |
174174
| `http_method` _(optional)_ | The HTTP method used for set requests only. Get HTTP requests are fixed to 'GET' for now. | "GET" |
175175
| `username` _(optional)_ | Username if http authentication is enabled on the RGB device. | |
176176
| `password` _(optional)_ | Password if http authentication is enabled on the RGB device. | |

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ function HttpPushRgb(log, config) {
5757
this.http_method = config.http_method || 'GET';
5858
this.username = config.username || '';
5959
this.password = config.password || '';
60-
this.timeout = config.timeout || 5000;
60+
this.timeout = config.timeout || 10000;
6161

6262
// Handle the basic on/off
6363
this.switch = { powerOn: {}, powerOff: {}, status: {} };

0 commit comments

Comments
 (0)