OK, Maybe I'm dense. Or maybe I'm still programming at 01:30, but I can't make sense of this:
I have 3 device serialnumbers in a database. I want to check to see if they are really there. Seems straightforward, right? This is a bit of my code: #Check to see if we really have the device, or it's just in the DB if ($owserver->present("/$serialnum")) { $sensors{$serialnum}->{sensorid}=$sensorid; $sensors{$serialnum}->{sensortype}=$sensortype; $sensors{$serialnum}->{name}=$name; $sensors{$serialnum}->{calibmult}=$calibmult; $sensors{$serialnum}->{calibadd}=$calibadd; } else { print "$serialnum not found. Skipping.\n"; } I never see the 'not found' even though I only have 2 devices currently on the bus. Now, I run my code, and it reads all the devices, and I have it print out the unixtime, serialnumber, and values to stdout right now. This is what I get: Use of uninitialized value in numeric ge (>=) at /usr/local/share/perl/5.8.8/OWNet.pm line 516. 1170657022,10.8D5155000800,65.075 1170657022,26.695115000000,39.9562,64.3438 1170657023,10.8D5155000800,65.075 1170657024,26.695115000000,40.2838,64.3438 1170657027,26.695115000000,65.075,39.9509 1170657028,26.695115000000,65.075,40.2757 1170657030,26.695115000000,65.075,40.2784 1170657032,26.695115000000,65.075,39.9509 1170657033,26.695115000000,65.075,40.2838 1170657035,26.695115000000,65.075,40.2811 1170657051,26.9ADE4F000000,40.2811,64.4 1170657053,26.9ADE4F000000,40.2784,64.2313 1170657054,26.9ADE4F000000,40.2784,64.175 1170657055,26.9ADE4F000000,40.2838,64.4562 1170657057,26.9ADE4F000000,40.2838,64.4 1170657058,26.9ADE4F000000,39.9482,64.2875 1170657060,26.9ADE4F000000,40.2838,64.4 1170657061,26.9ADE4F000000,40.2784,64.4562 1170657062,26.9ADE4F000000,40.2757,64.3438 1170657064,26.9ADE4F000000,40.2784,64.4562 1170657065,26.9ADE4F000000,40.2811,64.4562 1170657068,26.9ADE4F000000,65.075,40.2838 1170657068,10.8D5155000800,64.4 1170657069,26.9ADE4F000000,65.075,40.2757 1170657070,10.8D5155000800,64.175 1170657070,26.9ADE4F000000,65.075,40.2784 1170657071,10.8D5155000800,64.2313 1170657072,26.9ADE4F000000,65.075,39.6232 1170657072,10.8D5155000800,64.5125 1170657073,26.9ADE4F000000,65.075,40.2838 Now, how is the 26.9A device showing up when it's not there? Tim -- Tim Sailer Coastal Internet, Inc. www.buoy.com 631-399-2910 ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Owfs-developers mailing list Owfs-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/owfs-developers