Hi I have started learning tinyos-2.x and I have a simple question related to MultiOscilloscope function in directory tinyos-2.x/apps/MultihopOscilloscope. In the file MultioscilloscopeC.nc we declare a message buffer " message_t uartbuf ". But I dont understand where is this initialized. We call the command SerialSend.getPayload(&uartbuf); in the Recevie.receive() event. Thus basically we are getting the payload from the message stored in uartbuf. But I cant figure out where and when a message is being stored in uartbuf.
I guess when Receive.receive returns it returns a buffer for the stack. Is it the same buffer? I am confused. Can anyone explain this to me ? Thanking You John
_______________________________________________ Tinyos-help mailing list [email protected] https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
