You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
trezor-firmware/send_udp.py

10 lines
196 B

#!/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))