[Tinyos-help] CC2420Packet Interface (Tinyos2)

Damien O'Rourke orourked at eeng.dcu.ie
Wed Feb 13 11:04:39 PST 2008

Hi Rodo,

Remove "message_t*" from the function call.


-----Original Message-----
From: tinyos-help-bounces at millennium.berkeley.edu
[mailto:tinyos-help-bounces at millennium.berkeley.edu] On Behalf Of Rodolfo de
Paz Alberola
Sent: 13 February 2008 18:28
To: tinyos-help
Subject: [Tinyos-help] CC2420Packet Interface (Tinyos2)


I was trying to get some metadata values from my msg using CC2420Packet
Interface. For that, I modified BlinkToRadio inserting the following

components CC2420ActiveMessageC;

App.CC2420Packet -> CC2420ActiveMessageC;


BlinkToRadioC.nc (in event Receive.receive)
rssi = call CC2420Packet.getRssi(message_t* msg);
lqi = call CC2420Packet.getLqi(message_t* msg);
pow = call CC2420Packet.getPower(message_t* msg);

However, I obtain the same error in the three lines that I added in

BlinkToRadioC.nc: In function `Receive.receive':
BlinkToRadioC.nc:64: syntax error before `message_t'
BlinkToRadioC.nc:67: syntax error before `message_t'
BlinkToRadioC.nc:70: syntax error before `message_t'
make: *** [exe0] Error 1

So, it seems to me that I don't have access to this commands of the
CC2420Packet interface since the compiler doesn't recognize them. What I
did wrong?

I would appreciate any suggestions.

Tinyos-help mailing list
Tinyos-help at millennium.berkeley.edu

More information about the Tinyos-help mailing list