thermalcam_decoder/listen.py

10 lines
151 B
Python
Raw Permalink Normal View History

from socket import socket, AF_INET, SOCK_DGRAM
s = socket(AF_INET, SOCK_DGRAM)
s.bind(('', 8090))
while True:
d = s.recvfrom(1024)
print(d)