Re: [Tinyos-help] Read header field of CC2420 packet

2011-02-20 Thread Omprakash Gnawali
On Fri, Feb 11, 2011 at 4:37 AM, Osterloh, Martin martin.oster...@deri.org wrote: Hi all, I have a little problem here. I want to read the header (specifically the AM_ID of the packet). In my BaseStation program (which pretty much the standard one), I am doing the following: message_t*

[Tinyos-help] Read header field of CC2420 packet

2011-02-11 Thread Osterloh, Martin
Hi all, I have a little problem here. I want to read the header (specifically the AM_ID of the packet). In my BaseStation program (which pretty much the standard one), I am doing the following: message_t* receive( message_t *msg, void *payload, uint8_t len ) { message_t *ret =