Device::USB::PCSensor::HidTEMPer::Sensor(3pm)

Device::USB::PCSensor::HidTEMPer::Sensor3pm

Generic sensor class

Usage

None

Version

Version 0.0301

Overview

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.

Constants

•

MAX_TEMPERATURE

The highest temperature(Celsius) this sensor can detect.

•

MIN_TEMPERATURE

The lowest temperature(Celsius) this sensor can detect.

Methods

•

new( $device )

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.

•

fahrenheit()

Reads the current temperature and returns the corresponding value in fahrenheit degrees.

•

max()

Returns the highest temperature(Celsius) the sensor can detect.

•

min()

Returns the lowest temperature(Celsius) the sensor can detect.

•

celsius()

Empty method that should be implemented in each sensor, returing the current degrees in celsius.

Dependencies

This module internally includes and takes use of the following packages:

  use Scalar::Util qw/ weaken /;

This module uses the strict and warning pragmas.

For more information

None

Acknowledgements

Thanks to Elan Ruusamäe for fixing some compatibility issues with perl 5.8

Pod errors

Hey! The above document had some coding errors, which are explained below:

Around line 157:

Non-ASCII character seen before =encoding in 'Ruusamäe'. Assuming UTF-8

Releases

7 releases since Debian 7 (Wheezy); the text changed 4 times.

  1. 7
  2. 8–10
  3. 11
  4. 12
  5. 13

Bugs

Please report any bugs or missing features using the CPAN RT tool.

Author

Magnus Sulland < [email protected] >

From libdevice-usb-pcsensor-hidtemper-perl 2:0.04-3 in Debian 13 (Trixie). Parsed by carta from the page's man source.