Net::G...::POLL(3pm)

πŸ“¦
version 0.19 Β· 2 versions
  • 0.19 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 0.19 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

🌸 NAME 🌸

Net::GPSD3::Return::POLL β€” Net::GPSD3 Return POLL Object

okay so real quick, bestie β€” this is from the User Contributed Perl Documentation collection, and it's the page for Net::GPSD3::Return::POLL. Let's get into it πŸ’–


✨ SYNOPSIS ✨

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

like. that's it. that's the whole vibe. create the object, poll it, dump it, slay ✨


πŸ’– DESCRIPTION πŸ’–

This bad boy gives you a Perl object interface to the POLL object that the GPSD daemon hands back to you. It's giving "wrapper energy," and honestly? Obsessed. 🫢


πŸ‘‘ METHODS πŸ‘‘

class

Returns the object class. periodt.

string

Returns the JSON string. the raw tea, unfiltered β˜•

parent

Return the parent Net::GPSD3 object. iykyk β€” it's the mama object 🧚

time

timestamp

datetime

active

not me leaving these four with absolutely zero description πŸ’€ the original page literally just lists them and says nothing else, so that's all we got. no cap.

fix, tpv

Returns the first fix from the Fixes array, or undef if there isn't one. if it's empty, it's giving nothing, and that's valid.

my $fix=$poll->fix #isa Net::GPSD3::Return::TPV or undef
Note: I will try to keep this method consistent β€” author's words, not mine, but we respect the commitment πŸŽ€

Fixes

Object wrapper around JSON data. it's the whole array, wrapped up cute:

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. ⚠️ so like, don't build your whole personality around it, bestie.

sky

Returns the first object from the Skyviews array, or undef if there are none. main character of the sky views, basically.

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. ⚠️ fr fr, don't get attached.

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. ⚠️ same warning, same energy, don't @ me.

πŸ’€ BUGS πŸ’€

Found something cursed? Log it on RT and send it to the gpsd-dev email list. tell them everything, bestie, they wanna know πŸ™ˆ


🫢 SUPPORT 🫢

DavisNetworks.com supports all Perl applications including this package. iconic behavior, honestly πŸ‘‘

Also β€” try the gpsd-dev email list. the girlies there know things.


🌟 AUTHOR 🌟

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

the author himself, giving us the whole contact card. respect the craft πŸ’œ


This program is free software licensed under the... The BSD License πŸŽ€

The full text of the license can be found in the LICENSE file included with this module. go read it, it's right there, i believe in you.


πŸ”— SEE ALSO πŸ”—

  • Net::GPSD3
  • Net::GPSD3::Return::Unknown::Timestamp

and that's the whole page, bestie!! πŸ’…βœ¨ written by the lovely folks behind perl v5.34.0, dated 2022-06-16, and part of that Net::G...::POLL(3pm) moment we all know and love. go forth and poll responsibly πŸ¦‹πŸ“

πŸ“¦ where this page comes from