X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/Cipher_code.git/blobdiff_plain/db082c49480d86a681b6e4d199cafd2ece980293..d42def9d0be17813b2bedc52ae7bc4ac6a356c5d:/measure_energy_iot/receiver.py diff --git a/measure_energy_iot/receiver.py b/measure_energy_iot/receiver.py index 58d0789..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(2) + s.settimeout(1) data,addr = s.recvfrom(buf) except timeout: s.close()