The Perl and Raku Conference 2025: Greenville, South Carolina - June 27-29 Learn more

NAME

Device::USB::TEMPer1F - Perl extension for USB PCSensor TEMPer1F

SYNOPSIS

Either
my $temper = Device::USB::TEMPer1F->new or die $@;
print $temper->fetch; # 23.50
Or
print Device::USB::TEMPer1F->fetch;

DESCRIPTION

This device must be configured for using libusb.

METHODS

The API is very easy and has two methods only, as you can see below.

CONSTRUCTOR

my $temper = Device::USB::TEMPer1F->new
or die $@;
If the device was not found or other errors occurred, new() throws an exception and $@ contains the corresponding message.

FETCH

The fetch() method returns the temperature in degrees celsius.

SEE ALSO

AUTHOR

Rolf Rost, <pilgrim@rolfrost.de>

COPYRIGHT AND LICENSE

Copyright (C) 2017 by Rolf Rost

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.16.3 or, at your option, any later version of Perl 5 you may have available.