]> AND Private Git Repository - Cipher_code.git/blobdiff - measure_energy_iot/receiver.py
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
new
[Cipher_code.git] / measure_energy_iot / receiver.py
index 0841a156d6ec11de6ba83266b8447f4422a82803..cb3617d56cc9bcf7c24b01a300a1b6bf086a5f54 100644 (file)
@@ -26,7 +26,7 @@ data,addr = s.recvfrom(buf)
 try:
     while(data):
         f.write(data)
 try:
     while(data):
         f.write(data)
-        s.settimeout(0.001)
+        s.settimeout(1)
         data,addr = s.recvfrom(buf)
 except timeout:
     s.close()
         data,addr = s.recvfrom(buf)
 except timeout:
     s.close()