[Tinyos-help] Question about Receive interface

2011-06-25 Thread Geo Gkolfin
Hello! I am trying to write an application in which two nodes will be exchanging their temperature measurements every 2 secs, something like a ping pong protocol. So I need to use both AMSend and Receive interfaces. When I want to send a message I simply call the AMsend.send command and when the

Re: [Tinyos-help] Question about Receive interface

2011-06-25 Thread Sergio Valcarcel
Hi, The receive even is not a command, but an asynchronous event that is signaled every time the radio chip gets a message of the predefined type (defined as an AM channel number in the configuration). You may really want to read the Tutorial Mote-2-Mote radio communication. It will help you a