Skip to content

Commit

Permalink
fix: set request timeout to 5s
Browse files Browse the repository at this point in the history
  • Loading branch information
sg-app committed Nov 1, 2023
1 parent 45d6134 commit e835bce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ Fetch data from KeBa heat pump
Placeholder for the next version (at the beginning of the line):
### **WORK IN PROGRESS**
-->
### **WORK IN PROGRESS**
* (sg-app) set request timeout to 5s

### 0.0.1-beta.1 (2023-11-01)
* (sg-app) fix starting next request on error

Expand Down
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class Kebahp extends utils.Adapter {
this.log.debug("Adapter successful started.");
this.apiClient = axios.create({
baseURL: `http://${this.config.ipAddress}`,
timeout: 1000,
timeout: 5000,
responseType: "json",
responseEncoding: "utf8"
});
Expand Down

0 comments on commit e835bce

Please sign in to comment.