# Dump the data from my bluetooth NMEA gps to the console
# Shows very basic bluetooth comms
#
# Public Domain
#
# Nick Burch - v0.01

import socket

gps_addr='00:15:4B:01:14:EE'

sock=socket.socket(socket.AF_BT, socket.SOCK_STREAM)
target=(gps_addr,1) # serial connection to GPS
sock.connect(target)

print 'Connected to the GPS'

while 1:
	# This might be better as a read line type thing
	data = sock.recv(1024);
	if not data: break
	print data
sock.close()
