|
From: | Mike Tubby |
Subject: | Re: Change from 3.23 to 3.24 - program doesn't work? |
Date: | Wed, 22 Jun 2022 15:57:00 +0100 |
User-agent: | Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 |
Yo Mike! Care to share with everyone?
On Tue, 21 Jun 2022 18:28:37 +0100 Mike Tubby <mike@tubby.org> wrote:David, I have emailed you off list with an example from one of my projects which works with GPSD 3.15 through 3.24 which you may find helpful. Mike On 20/06/2022 19:25, David Taylor wrote:On 20/06/2022 18:39, Gary E. Miller wrote:Yo David! On Mon, 20 Jun 2022 11:22:39 +0100 David Taylor <gm8arv@yahoo.co.uk> wrote:On 20/06/2022 07:41, Gary E. Miller wrote:Yo David! I can't see how that ever worked. Your program does not check if the receiver JSON has the data you are trying to read. Take a look at example.c for ideas on what is missing.Gary, I could not find "example.c" for gpsd.It is in the git repo, in the tar ball, in the libgps man page, ion the web page, etc. Since you don't know how to grep or search: https://gpsd.io/gpsd-client-example-code.htmlI did find gpssnmp.c and a compiled version, which appears to be a tidied up version of the software I submitted some time back, for which, thanks!Yeah, bot used by many.On running the compiled version, though, I get a "connection failed" error. pi@RasPi-22:~/gpsd/gpsd-3.24.1~dev/clients $ gpssnmp -g .1.3.6.1.2.1.25.1.33 gpssnmp: ERROR: connection failedHmm, I see that. I'll look at it. WHile we are talking SNMP, I have been asked where those OIDs came from? RGDS GARYGary, I didn't find example.c in the GIT download. I've used "find..." before, but when I saw lib... I thought "that can't be the right file"... Thanks for the example URL. Thanks for checking out gpssnmp.c. The only peculiar thing about this RPi is that ipV6 is disabled, but it was disabled on the previous 3.23 install. The OIDs are invented by me. If you can find better - more official - ones let's swap. Cheers, DavidRGDS GARY --------------------------------------------------------------------------- Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703 gem@rellim.com Tel:+1 541 382 8588 Veritas liberabit vos. -- Quid est veritas? "If you can't measure it, you can't improve it." - Lord Kelvin
[Prev in Thread] | Current Thread | [Next in Thread] |