By mentioning XMDA300 I will guess that you are using Moteworks. A quick look at the RelayM.nc file shows that it is a simple driver for turning an I/O pin on and off, so it's probably the code that you want to use in your app. If your moisture sensor is on the same mote as the relay you probably need to modify whatever the highest level application files are: do a sensor sample, turn relay on/off, repeat.
I admit to not even trying to understand what XMDA300M.nc does, but I think it is part of Xmesh -- Motework's distributed sensor net application suite -- which is not really targeted at doing control functions, either local or remote. If you don't need Xmesh you should be able to modify a much simpler demo app like Blink or (going back to the base TOS1.x) Sense. MS NeLzZzZ..... . wrote: > > > > > I'm a M.E student from Velammal Engineering College doing project work > using MDA300 & MICAz motes. > I'm having a doubt about exciting a water sprinkler using the relay pins > in MDA300 when a analog values exceeds a threshold.[the analog value > will be the values from soil moisture sensor]i.e during water scarcity > the sprinkler should be actuated. > where should i do the changes in my coding? > should i do it in XMDA300M.nc or RelayM.nc in mda300 folder? > please help me > > > > > > -- > NELSON ROSARIO > > > ------------------------------------------------------------------------ > > _______________________________________________ > Tinyos-help mailing list > Tinyos-help@millennium.berkeley.edu > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help _______________________________________________ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help