thanks for your replay
in my code
module file
uses interface Read<uint16_t> as ReadLight;uses interface Read<uint16_t> as
ReadTemperature;uses interface Read<uint16_t> as ReadHumidity;
uint32_t light;uint32_t temperature;uint32_t humidity;
event void MilliTimer.fired() {call ReadLight.read();call
ReadTemperature.read();call ReadHumidity.read();
rcm->light=light;rcm->temperature=temperature;rcm->humidity=humidity;
event void ReadLight.readDone(error_t result, uint16_t data)
{
if (result == SUCCESS){
light = data;
}
}///////////////////////event void ReadTemperature.readDone(error_t result,
uint16_t data)
{
if (result == SUCCESS){
temperature = data;
}
}
////////////////////////////////
event void ReadHumidity.readDone(error_t result, uint16_t data)
{
if (result == SUCCESS){
humidity = data;
}
}
/././././././.configuration file
components new HamamatsuS10871TsrC() as SensorLght;
components new SensirionSht11C() as SensorSht; App.ReadLight ->
SensorLght.Read;App.ReadTemperature -> SensorSht.Temperature;
App.ReadHumidity -> SensorSht.Humidity;
at java code System.out.println(msg.get_temperature());
thanks for any help> Date: Fri, 28 Nov 2008 07:30:50 -0700> From: [EMAIL
PROTECTED]> To: [EMAIL PROTECTED]> CC: [email protected]>
Subject: Re: [Tinyos-help] problem in reading from environnement> > Hmm, 4096
should be the maximum reading. Look into how you> are handling the values on
both ends -- mote and pc. Perhaps> you are trying to interpret the wrong bytes
in the wrong order.> Do those value change when you heat/cool/humidify the
sensors?> MS> > > jolly 94 wrote:> > hello> > > > i am trying to read from
environnement i read the light successfully but > > the Temperature and
humidity i found a big value> > which i can not accepted> > > > i work as i
found in> >
http://www.mail-archive.com/[email protected]/msg13483.html>
> > > but the result in my program for Temperature and humidity > > > > the
Temperature is 7201> > the Humidity is 5521> > ????????????> > > > > > > > > >
> > thanks for any help> > > > > > > > --------------------!
----------------------------------------------------> > Express yourself
instantly with MSN Messenger! MSN Messenger > >
<http://clk.atdmt.com/AVE/go/onm00200471ave/direct/01/>> > > > > >
------------------------------------------------------------------------> > > >
_______________________________________________> > Tinyos-help mailing list> >
[email protected]> >
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help