Device...Device(3pm)
π NAME π
okay so bestie, welcome to Device::USB::PCSensor::HidTEMPer::Device β it's the Generic device class, the blueprint, the main character template that all the other HidTEMPer devices are built from π
(this page lives in the User Contributed Perl Documentation, and honestly? iconic of it.)
β¨ VERSION β¨
Version 0.02 π¦
πΈ SYNOPSIS πΈ
None
like, literally none. there's nothing to show you here. move along, gorgeous π
π₯ DESCRIPTION π₯
so this module is holding a generic class, right? and the whole vibe is that every HidTEMPer device is supposed to inherit from it. why? because that keeps all the implemented methods consistent across the board, and it makes it possible to use the exact same code to talk to every supported device π«Ά
one class to rule them all. no cap.
π§ CONSTANTS π§
CONNECTION_TIMEOUTβ this is the USB communication timeout, and it's specified in milliseconds β±οΈ so like, that's how long we wait before we're like "okay bestie, guess you're not answering."
π« METHODS π«
new( $usb_device )β creates a brand new genericDeviceobject. fresh out the box, slay β¨identifier()β this method is used to acquire the numerical value that represents the device type identifier π’internal()β returns the correspondingSensorobject that represents the internal sensor connected to the device. but listen β if the device doesn't have an internal sensor,undefgets returned. no sensor, no vibes πexternal()β returns the correspondingSensorobject that represents the external sensor connected to the device. same deal: if there's no external sensor on that device,undefcomes back πinit()β an empty method that should be implemented in order to be able to initialize a object instance. yeah, it's giving placeholder. it's giving "your turn, bestie" π
π§ DEPENDENCIES π§
this module internally includes and takes use of the following packages, fr fr:
use Carp;
use Device::USB;
use Device::USB::Device;
and also β it uses the strict and warning pragmas π
π BUGS π
please report any bugs or missing features using the CPAN RT tool. we're not mad, we just want the tea π
π FOR MORE INFORMATION π
None
π AUTHOR π
Magnus Sulland < msulland@cpan.org > π
π ACKNOWLEDGEMENTS π
None
π COPYRIGHT & LICENSE π
Copyright (c) 2010-2011 Magnus Sulland
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. periodt π«Ά
and that's the whole page, bestie β no notes. this was documented with perl v5.40.0, dated 2024-11-30, and yes, that header/footer combo was serving Device...Device(3pm) realness the entire time πβ¨
π¦ where this page comes from
- debian trixie: libdevice-usb-pcsensor-hidtemper-perl 2:0.04-3 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- ubuntu resolute: libdevice-usb-pcsensor-hidtemper-perl 2:0.04-3 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- ubuntu stonking: libdevice-usb-pcsensor-hidtemper-perl 2:0.04-3 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms