|
From: | lokesh kumar Nijalinge |
Subject: | Re: [gpsd-users] Gps application stops transmitting data after some time |
Date: | Tue, 15 Sep 2015 22:59:32 +0530 |
Hi Gary,
So I need to wait very less.
Mean to say the statement " if (gps_waiting (&gpsdata, 2000))" should be changed something to " if (gps_waiting (&gpsdata, 2))".
Am I right with above statement?
Thanks,
Lokesh
Yo lokesh!
On Tue, 15 Sep 2015 17:33:59 +0530
lokesh kumar Nijalinge <address@hidden> wrote:
> Can anyone let me know if something is missed in this part of code.
> Below is the code
You are waing to long, and the input buffer is filling up.
> while (1) {
[...]
> sleep(1);
> printf("status %d \n",gpsdata.status);
> }
You can not read more than one sentence a second with the sleep in there,
but there may be many sentences a second.
RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
address@hidden Tel:+1(541)382-8588
[Prev in Thread] | Current Thread | [Next in Thread] |