Skip to content

Instantly share code, notes, and snippets.

@johannah
Last active May 2, 2016 22:34
Show Gist options
  • Save johannah/1b28438b7ae6574c4d9783661a50203e to your computer and use it in GitHub Desktop.
Save johannah/1b28438b7ae6574c4d9783661a50203e to your computer and use it in GitHub Desktop.
example nmea output
import os
import sys
import socket
# sinaps server ip address
UDP_IP = "192.168.0.1"
UDP_POT = 5003
NMEA = "$GPGGA,172814.0,3723.46587704,N,12202.26957864,W,2,6,1.2,18.893,M,-25.669,M,2.0,0031*4F"
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
while True:
sock.sendto(NMEA, (UDP_IP, UDP_PORT))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment