Device::USB::PCSensor::HidTEMPer::Sensor(3pm) | User Contributed Perl Documentation | Device::USB::PCSensor::HidTEMPer::Sensor(3pm) |
Device::USB::PCSensor::HidTEMPer::Sensor - Generic sensor class
Version 0.0301
None
This module contains a generic class that all HidTEMPer sensors should inherit from keeping the implemented methods consistent, and making it possible to use the same code to contact every supported device.
The highest temperature(Celsius) this sensor can detect.
The lowest temperature(Celsius) this sensor can detect.
Generic initializing method, creating a sensor object.
Input parameter
$device = A pre-initialized Device::USB::PCSensor::HidTEMPer::Device that the sensor is connected to. This device will be used to handle communication.
Reads the current temperature and returns the corresponding value in fahrenheit degrees.
Returns the highest temperature(Celsius) the sensor can detect.
Returns the lowest temperature(Celsius) the sensor can detect.
Empty method that should be implemented in each sensor, returing the current degrees in celsius.
This module internally includes and takes use of the following packages:
use Scalar::Util qw/ weaken /;
This module uses the strict and warning pragmas.
Please report any bugs or missing features using the CPAN RT tool.
None
Magnus Sulland < msulland@cpan.org >
Thanks to Elan Ruusamäe for fixing some compatibility issues with perl 5.8
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.
Hey! The above document had some coding errors, which are explained below:
2019-07-29 | perl v5.28.1 |