Hi, It probably depends on the exact platform that you have and whether that platform has the (potentially optional) sensors installed. I use Tmote Sky with the sensors installed. You could try:
components new SensirionSht11C(); OscilloscopeC.Read -> SensirionSht11C.Temperature; Cheers, Urs Adam J. Forster schrieb: > Hi All, > > I would like to test the on-board temperature sensor on my TelosB units, > using the Oscilloscope application under TinyOS 2.0.1. From the TinyOS 2 > tutorial I can see that by default the Oscilloscope application uses the > platform's default sensor set in DemoSensorC.nc - which for the TelosB > is the battery voltage. I have made the following change in > OscilloscopeAppC.nc, from this: > > components OscilloscopeC, MainC, ActiveMessageC, LedsC, > new TimerMilliC(), new DemoSensorC() as Sensor, > new AMSenderC(AM_OSCILLOSCOPE), new AMReceiverC(AM_OSCILLOSCOPE); > > To this: > > components OscilloscopeC, MainC, ActiveMessageC, LedsC, > new TimerMilliC(), new TempC() as Sensor, > new AMSenderC(AM_OSCILLOSCOPE), new AMReceiverC(AM_OSCILLOSCOPE); > > However when I attempt to compile this I get the follow error: > > In component `OscilloscopeAppC': > OscilloscopeAppC.nc:27: component TempC not found > OscilloscopeAppC.nc:27: component `TempC' is not generic > OscilloscopeAppC.nc:35: no match > make: *** [exe0] Error 1 > > Does this mean that TinyOS 2 does not implement a temperature sensor for > the TelosB? If so could someone please tell me how I can read the > temperature from my TelosB units? > > Kind regards, _______________________________________________ Tinyos-help mailing list [email protected] https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
