I have pure data and a python script running on my raspberry pi. I'm using Socket and a TCP connection to send a value from python every 10 seconds into Pure data via a netreceive object. (the value changes every now and then)
The issue i'm having is that each time the script repeats (in a thread) it opens a new connection in Pure data and doesn't seem to close the old one. When it gets to a certain number of open connections it no longer receives the right value.
I'm a bit of a beginner/copy+paster on Python (and pure data) so am struggling to figure out which side of this equation needs sorting out.