From 8166f4635c91d2032b7a52b593f81dcd324f7bec Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Couturier?= Date: Thu, 15 Jul 2021 19:07:54 +0200 Subject: [PATCH] new --- measure_energy_iot/receiver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/measure_energy_iot/receiver.py b/measure_energy_iot/receiver.py index 58d0789..0841a15 100644 --- a/measure_energy_iot/receiver.py +++ b/measure_energy_iot/receiver.py @@ -26,7 +26,7 @@ data,addr = s.recvfrom(buf) try: while(data): f.write(data) - s.settimeout(2) + s.settimeout(0.001) data,addr = s.recvfrom(buf) except timeout: s.close() -- 2.39.5