[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gpsd-users] Getting fixes without polling
From: |
Lisandro Damián Nicanor Pérez Meyer |
Subject: |
Re: [gpsd-users] Getting fixes without polling |
Date: |
Wed, 01 Feb 2017 10:57:31 -0300 |
User-agent: |
KMail/5.2.3 (Linux/4.9.0-1-amd64; KDE/5.28.0; x86_64; ; ) |
On martes, 31 de enero de 2017 11:00:38 ART Gary E. Miller wrote:
> Yo Lisandro!
>
> On Tue, 31 Jan 2017 12:23:37 -0300
>
> Lisandro Damián Nicanor Pérez Meyer <address@hidden> wrote:
> > Is there any way to get fixes without the need to poll? I guess dbus
> > might help here, but...
>
> Open the gpsd port, 2947, and tell it to stream JSON at you.
I think that's what I'm doing:
result = gps_open("localhost", 37455, &mGPSData);
[check result...]
result = gps_stream(&mGPSData,WATCH_ENABLE|WATCH_JSON, NULL);
[check result...]
But then I need a timer to poll using gps_read(). Is there a way to have a
callback in order to avoid the timer?
--
Si vives cada día de tu vida como si fuera el último,
algún día realmente tendrás razón.
Steve Jobs
Lisandro Damián Nicanor Pérez Meyer
http://perezmeyer.com.ar/
http://perezmeyer.blogspot.com/
signature.asc
Description: This is a digitally signed message part.
- Re: [gpsd-users] Getting fixes without polling,
Lisandro Damián Nicanor Pérez Meyer <=