1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-22 14:28:07 +00:00

add recv to send_udp example

This commit is contained in:
Pavol Rusnak 2016-05-06 02:11:25 +02:00
parent 67c0ecfb23
commit d76477674d
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -8,3 +8,6 @@ MESSAGE = b'Hello, World!'
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
sock.sendto(MESSAGE, (UDP_IP, UDP_PORT))
while True:
print(sock.recv(64))