From: Ernie O. <ern...@ho...> - 2002-06-29 16:40:54
|
I've moved my Dalsemi DS2438 based humidity sensor over to my Linux box with the rest of my weather station equipment, but couldn't find examples of how to declare the sensor. I have this code... my $humsensor = new Hardware::iButton::Device::DS2438(qw(B000000006CF9F26)); if ($New_Minute){ my $humidity = $humsensor -> read_humidity(); print_log "Humidity = $humidity" if $humidity; } It doesn't seem like the actual sensor declaration is a problem, though it should be picking up that the "26" at the end is the family. I see this at the console... 06/29/02 12:30:25 Oops1: unknown model, family code 00 at ../lib/site/Hardware/iButton/Device.pm line 243. humidity Error in user code: Can't locate object method "connected" via package "B000000006CF9F26" at ../lib/site/Hardware/iButton/Device.pm line 890. Ernie |