Browse Source

[fetch/supervise] Increase timeouts (for HTTP and Modbus)

Maxime Alves LIRMM@home 3 years ago
parent
commit
e8ba07e3dd
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      pyheatpump/cli.py
  2. 1
    1
      pyheatpump/modbus.py

+ 1
- 1
pyheatpump/cli.py View File

@@ -212,7 +212,7 @@ def supervise(since):
212 212
             url=build_url(post_url),
213 213
             json=shift_response(packet),
214 214
             verify=False,
215
-            timeout=20
215
+            timeout=200
216 216
         )
217 217
         time.sleep(5)
218 218
         if post_resp.status_code == 200:

+ 1
- 1
pyheatpump/modbus.py View File

@@ -30,7 +30,7 @@ def connect():
30 30
             bytesize=8,
31 31
             parity='N',
32 32
             stopbits=1,
33
-            timeout=10)
33
+            timeout=20)
34 34
 
35 35
     if serial_conn.open is False:
36 36
         print('Opening serial port')

Loading…
Cancel
Save