[Tinyos-help] CC2420Packet Interface (Tinyos2)
Rodolfo de Paz Alberola
rodolfo.depaz at cit.ie
Wed Feb 13 10:28:22 PST 2008
Hi,
I was trying to get some metadata values from my msg using CC2420Packet
Interface. For that, I modified BlinkToRadio inserting the following
lines:
BlinkToRadioAppC.nc
------------------------------------
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
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.
------
Rodo
More information about the Tinyos-help
mailing list