gpsd-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gpsd-users] Better approach for reading from gpsd valid data with modif


From: Cuningan Re Set
Subject: [gpsd-users] Better approach for reading from gpsd valid data with modified Python Library.
Date: Thu, 1 Oct 2015 11:53:05 +0200

Hello all, other time, i am messing up with the Python library and see that the way i tell you to read the gpsd object data is not correct enough.

This is better.

try:
   gpsd.next()
except(StopIteration)
   pass

if gpsd.fix.mode>MODE_NO_FIX:
   #Do whatever you want.
else:
   #You dont have valid data.

Thanks for the patience.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]