mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-23 23:08:14 +00:00
10 lines
196 B
Python
10 lines
196 B
Python
|
#!/usr/bin/python
|
||
|
import socket
|
||
|
|
||
|
UDP_IP = '127.0.0.1'
|
||
|
UDP_PORT = 21324
|
||
|
MESSAGE = b'Hello, World!'
|
||
|
|
||
|
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
|
||
|
sock.sendto(MESSAGE, (UDP_IP, UDP_PORT))
|