Skip to content

Commit

Permalink
Use port 10111
Browse files Browse the repository at this point in the history
  • Loading branch information
sindrehan committed Oct 11, 2024
1 parent 4b138ff commit 0b56a34
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion examples/nmea_publisher.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ def callback_position_estimate(
# UDP configuration
# This IP will broadcast to all devices in the 192.168.1 subnet
UDP_IP = "192.168.1.255"
UDP_PORT = 10110
# 10110 is the most commonly used port for NMEA, but the drone expects to receive its own
# position on this port, so if we reuse it the position will be sent in a loop.
UDP_PORT = 10111

udp_socket = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
udp_socket.setsockopt(socket.SOL_SOCKET, socket.SO_BROADCAST, 1) # Enable broadcasting

Expand Down

0 comments on commit 0b56a34

Please sign in to comment.