X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/Cipher_code.git/blobdiff_plain/8166f4635c91d2032b7a52b593f81dcd324f7bec..248cb37c4fc6ec91a0dc94ee5a94d2df675bfce9:/measure_energy_iot/receiver.py diff --git a/measure_energy_iot/receiver.py b/measure_energy_iot/receiver.py index 0841a15..cb3617d 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(0.001) + s.settimeout(1) data,addr = s.recvfrom(buf) except timeout: s.close()