mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-16 09:11:02 +00:00
14 lines
311 B
Python
14 lines
311 B
Python
import socket
|
|
|
|
UDP_IP = "195.227.44.85"
|
|
UDP_PORT = 2013
|
|
MESSAGE = "Hello, World!"
|
|
|
|
print "UDP target IP:", UDP_IP
|
|
print "UDP target port:", UDP_PORT
|
|
print "message:", MESSAGE
|
|
|
|
sock = socket.socket(socket.AF_INET, # Internet
|
|
socket.SOCK_DGRAM) # UDP
|
|
sock.sendto(MESSAGE, (UDP_IP, UDP_PORT))
|