mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-03 12:00:59 +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 = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
|
||||||
sock.sendto(MESSAGE, (UDP_IP, UDP_PORT))
|
sock.sendto(MESSAGE, (UDP_IP, UDP_PORT))
|
||||||
|
|
||||||
|
while True:
|
||||||
|
print(sock.recv(64))
|
||||||
|
Loading…
Reference in New Issue
Block a user