Hi,
not really, you just need to
event message_t * BeaconReceive.receive(message_t *msg, void *payload,
uint8_t len){
uint16_t beaconId;
if ( len == sizeBeacon ) {
atomic {
beaconId = pointerBeacon->beaconId;
pointerBeacon = (BeaconMsg*) payload;
beaconInfo.beaconId = pointerBeacon->beaconId;
beaconInfo.rssi = call RadioPacket.getRssi(msg);
post putQueueBeacon ();
On Mon, Jan 10, 2011 at 6:06 AM, SHIVASANKAR GANESAN <[email protected]>wrote:
> Hi
>
> Do we need to include any header file for using RSSI_VAL register.
>
> I want to read RSSI Value.
>
> when I am using below given line.
>
> *power=RSSI_VAL-45;//for RSSI reading,here RSSI_OFFSET is -45dBm.*
>
> It is giving error as
>
> *`RSSI_VAL' undeclared (first use in this function).*
>
> *With regards*
> *Sivasankar*
>
>
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help