"Yes". You could do it via serial, have a server-client arrangement where either the Pi or the PC can be server, you could probably use something like MQTT or some other 'via the cloud' type interface, even if that 'cloud' were local, on the Pi or PC. You could do it via file sharing and reading what has been written, on the Pi or on the PC.
There are many ways for transferring information between two computers, and using the network is usually preferred it the computers are on the same network or can reach eachother via the internet.
Given that, and also because the PC probably wants to be told there's new data, a new ID, rather than poll for it, the way I'd do it is ...
Code: Select all
def NewIdDetected(id): IP = "192.168.0.123" return urllib.urlopen("http://"+IP+"/ID="+id).read()