gpsd-users
[Top][All Lists]
Advanced

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

Re: [gpsd-users] Gps application stops transmitting data after some time


From: Gary E. Miller
Subject: Re: [gpsd-users] Gps application stops transmitting data after some time
Date: Tue, 15 Sep 2015 10:22:31 -0700

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

Attachment: pgplad0xin3pY.pgp
Description: OpenPGP digital signature


reply via email to

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