Hi,

First off, let me preface this by saying I am an absolute newbie when it comes 
to tinyOS. 

I've completed the sensing tutorials, but I am running into some issues. I have 
a telosB and I would like to use both its light and temperature sensors. So, in 
my SenseApp.nc, I've done the following:

#include "printf.h"

configuration SenseAppC
{ }
implementation
{
    components MainC, SenseC, LedsC;
    components new TimerMilliC() as Timer0;
    components new TimerMilliC() as Timer1;
    components PrintfC;
    components SerialStartC;
  
    components new HamamatsuS1087ParC() as Photo;
    components new SensirionSht11C() as Temp;
 
    SenseC -> MainC.Boot;
  
    SenseC.Timer0 -> Timer0;
    SenseC.Timer1 -> Timer1;
    SenseC.Leds -> LedsC;
    SenseC.Read -> Photo;
    SenseC.Read -> Temp;
  }

Now, when I get a read event, how am I supposed to be able to determine whether 
it came from the photo sensor or the temperature sensor? Or, am I doing this in 
an entirely wrong way to begin? 

Thanks for the help!

-Max
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to