multicast

This commit is contained in:
0m.ax 2025-07-20 15:45:47 +02:00
parent c092d631b2
commit 8e8aaf382e

View file

@ -28,6 +28,7 @@ def main(device_path, dest_ip, dest_port):
# Create a UDP socket
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
sock.setsockopt(socket.IPPROTO_IP, socket.IP_MULTICAST_TTL, MULTICAST_TTL)
print(f"Sending coordinates to {dest_ip}:{dest_port}")
# Variables to store the latest coordinates