event TOS_MsgPtr ReceiveMsg.receive (TOS_MsgPtr m)
{
/* extratc the payload field of the packet and decide whether to sound the sounder */
/* If so, */
call SounderControl.start();
}
To stop the sounder call SounderControl.stop ()
The above module should
uses
interface StdControl as SounderControl;
and in the configuration
module_name.SounderControl -> SounderC;
You can issue call SounderControl.init() in the init function of the module
On 5/17/06, antonio gonga <[EMAIL PROTECTED]> wrote:
I've a sound sensor connected in a Mote, i don“t know how to play a sound when I receive data from another mote. I have forward the data packet received to BaseStaion. I'm trying to use surge and SurgeM application but i'm not sure if I will be successfull.
Thanks
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
--
regards,
Aditya Bhave
_______________________________________________ Tinyos-help mailing list [email protected] https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
