I have a silly question for SPSend.
I am trying to send packets from tmote sky to pc. I am trying to use SPSend,
since people recommend to use it in place of GenericComm. I have been
watching a few examples - such as this one (TestUart0P from
http://www.moteiv.com/community/Boomerang_UART0_Sample):
implementation {
sp_message_t m_spmsg;
TOS_Msg m_tosmsg;
enum {
UART_TX_BYTE = 0x12,
};
void sendMessage() {
if (call SPSend.send(&m_spmsg, &m_tosmsg, TOS_BCAST_ADDR, 2) == SUCCESS)
{
call Leds.greenOn();
}
}
Here Joe seems to be sending the address location of m_spmsg, and not what
it contains, am I right?? Why would he do that?
And now, how can I send my packets? lets say I have 4 byte (0x00 0x12 0x44
and 0xFF), how do I create a sp_message_t out of that?
Thank you for you help!
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help