Last active
May 2, 2016 22:34
-
-
Save johannah/1b28438b7ae6574c4d9783661a50203e to your computer and use it in GitHub Desktop.
example nmea output
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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