Ver código fonte

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

Maxime Alves LIRMM@home 4 anos atrás
pai
commit
e8ba07e3dd
2 arquivos alterados com 2 adições e 2 exclusões
  1. 1
    1
      pyheatpump/cli.py
  2. 1
    1
      pyheatpump/modbus.py

+ 1
- 1
pyheatpump/cli.py Ver arquivo

@@ -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 Ver arquivo

@@ -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')

Carregando…
Cancelar
Salvar