]> AND Private Git Repository - Cipher_code.git/commitdiff
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
new
authorRaphaël Couturier <raphael.couturier@univ-fcomte.fr>
Fri, 16 Jul 2021 16:39:19 +0000 (18:39 +0200)
committerRaphaël Couturier <raphael.couturier@univ-fcomte.fr>
Fri, 16 Jul 2021 16:39:19 +0000 (18:39 +0200)
measure_energy_iot/client_tcp4.py
measure_energy_iot/receiver.py

index 542a7ae3c6dd26e24372e9d06c40cd538b927036..885451f5ba462a1e6d3643e50b1fa36c3e15c6d9 100644 (file)
@@ -15,7 +15,7 @@ PORT = 2345
 s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
 s.connect((HOST, PORT))
 
-nb_times=100
+nb_times=10
 
 quality=int(sys.argv[1])
 print("quality ",quality)
index 0841a156d6ec11de6ba83266b8447f4422a82803..cb3617d56cc9bcf7c24b01a300a1b6bf086a5f54 100644 (file)
@@ -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()