logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Net::GPSD3::Return::POLL - Net::GPSD3 Return POLL Object

Author

         Michael R. Davis
         CPAN ID: MRDVT
         STOP, LLC
         domain=>michaelrdavis,tld=>com,account=>perl
         http://www.stopllc.com/

Bugs

       Log on RT and send to gpsd-dev email list

Description

       Provides a Perl object interface to the POLL object returned by the GPSD daemon.

Methods

class
       Returns the object class

   string
       Returns the JSON string

   parent
       Return the parent Net::GPSD3 object

   timetimestampdatetimeactivefix,tpv
       Returns the first fix from the Fixes array or undef if none.

         my $fix=$poll->fix #isa Net::GPSD3::Return::TPV or undef

       Note: I will try to keep this method consistent

   Fixes
       Object wrapper around JSON data

         my $fix=$poll->Fixes #isa [] of Net::GPSD3::Return::TPV objects
         my @fix=$poll->Fixes #isa () of Net::GPSD3::Return::TPV objects

       Note: I'm not sure why this is an array from the protocol but do not count on this staying the same

   sky
       Returns the first object from the Skyviews array or undef if none.

         my $sky=$poll->sky #isa Net::GPSD3::Return::SKY or undef

       Note: I will try to keep this method consistent

   Skyviews
       Object wrapper around JSON data

         my $sky=$poll->Skyviews #isa [] of Net::GPSD3::Return::SKY objects
         my @sky=$poll->Skyviews #isa () of Net::GPSD3::Return::SKY objects

       Note: I'm not sure why this is an array from the protocol but do not count on this staying the same

   Gst
       Object wrapper around JSON data

         my $gst=$poll->Gst #isa [] of Net::GPSD3::Return::GST objects
         my @gst=$poll->Gst #isa () of Net::GPSD3::Return::GST objects

       Note: I'm not sure why this is an array from the protocol but do not count on this staying the same

Name

       Net::GPSD3::Return::POLL - Net::GPSD3 Return POLL Object

See Also

       Net::GPSD3, Net::GPSD3::Return::Unknown::Timestamp

perl v5.34.0                                       2022-06-16                      Net::GPSD3::Return::POLL(3pm)

Support

       DavisNetworks.com supports all Perl applications including this package.

       Try gpsd-dev email list

Synopsis

         use Net::GPSD3;
         use Data::Dumper qw{Dumper};
         my $gpsd = Net::GPSD3->new;
         my $poll = $gpsd->poll;
         print Dumper($poll);

See Also