02 Mar 2017 14:53:22 UTC
- Distribution: Device-USB-TEMPer1F
- Module version: 0.04
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (1)
- Testers (17 / 603 / 25)
- KwaliteeBus factor: 0
- 86.67% Coverage
- License: unknown
- Download (3.38KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version
- Rolf Rost, email@example.com
Device::USB::TEMPer1F - Perl extension for USB PCSensor TEMPer1F
use Device::USB::TEMPer1F; Either my $temper = Device::USB::TEMPer1F->new or die $@; print $temper->fetch; # 23.50 Or print Device::USB::TEMPer1F->fetch;
This device must be configured for using libusb.
The API is very easy and has two methods only, as you can see below.
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.
The fetch() method returns the temperature in degrees celsius.
libusb Device::USB ppm install http://rolfrost.de/Device-USB.ppd ppm install http://rolfrost.de/Device-USB-PX1674.ppd ppm install http://rolfrost.de/Device-USB-TEMPer1F.ppd
Rolf Rost, <firstname.lastname@example.org>
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.
Module Install Instructions
To install Device::USB::TEMPer1F, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Device::USB::TEMPer1F
For more information on module installation, please visit the detailed CPAN module installation guide.
|s||Focus search bar|
|?||Bring up this help dialog|
|g p||Go to pull requests|
|g i||go to github issues (only if github is preferred repository)|
|g a||Go to author|
|g c||Go to changes|
|g i||Go to issues|
|g d||Go to dist|
|g r||Go to repository/SCM|
|g s||Go to source|
|g b||Go to file browse|