Hello, You need to create two components for your sensors. I will give you my example for a telosa:
I added two components for the AppC.nc file: components new HamamatsuS1087ParC() as LightSensor; components new SensirionSht11C() as TempSensor; then I create two interfaces in my application file: interface Read<uint16_t> as Temp; interface Read<uint16_t> as Light; And the last step is to wire them in the first file: File.Light -> LightSensor; File.Temp -> TempSensor.Temperature; I hope you understand. Luís Pereira On Sun, Oct 30, 2011 at 21:23, sai manoj <[email protected]> wrote: > > Hi all, > > I am trying to implement a application in Tinyos-2.1.1 on Iris motes, in > which I need to use Photosensor as well as Temperature sensor. I need to > sense the light data and then temperature value next. Is this possible? If > so how to define two different reads for 2 different sensors? > > > -- > SAI MANOJ P D (M.Tech) > International Institute of Information Technology,Bangalore > > > > _______________________________________________ > Tinyos-help mailing list > [email protected] > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help >
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
