void WISEBEDApplication::read_sensors() { #if defined (ISENSE_PACEMATE) #endif #if defined (ISENSE_MSP430) os().debug("wiseml;6;%x;%i",os().id(), telos_->humidity()); uint16 temp = telos_->temperature(); uint16 temprest = temp % 10; os().debug("wiseml;1;%x;%i,%i",os().id(), temp / 10, temprest); os().debug("wiseml;2;%x;%i",os().id(), telos_->light()); os().debug("wiseml;3;%x;%i",os().id(), telos_->infrared()); spyglass_->paintNodeWithTemp(os().id(), temp); spyglass_->paintNodeWithLight(os().id(), telos_->light()); spyglass_->paintNodeWithIrda(os().id(), telos_->infrared()); #endif #if defined (ISENSE_JENNIC_JN513xR1) if (em_active_ == true) { temp_ = em_->temp_sensor()->temperature(); lux_ = em_->light_sensor()->luminance(); os().debug("wiseml;1;%x;%i",os().id(), temp_); os().debug("wiseml;2;%x;%d",os().id(), lux_); spyglass_->paintNodeWithTemp(os().id(), temp_); spyglass_->paintNodeWithLight(os().id(), lux_); } else { } #endif }