I already identify each thread via self.ms1 - I have one device per thread and all devices are stored on my JSON library
When I delete all but one device my JSON library, I end up with the same result...
I have solved it by breaking the while with a continue as below :
When I delete all but one device my JSON library, I end up with the same result...
I have solved it by breaking the while with a continue as below :
data="" data2=s.recv(1024) if data==data2: continue data=data2.decode() data=data.strip()Not really elegant, but seems to work. Thanks @Gribouillis