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:
parent
67c0ecfb23
commit
d76477674d
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user