The primitive to read the RSSI value corresponding to a received packet is

newRSSi = (int8_t)(call CC2420Packet.getRssi(mess) -45);

where
- mess is a message_t*, the one you find in the Receive event prototype
- newRSSi is a int8_t

That's all, hope this helps.
Marco

On 30 June 2011 22:16, vinod kumar <[email protected]> wrote:

> Can anyone suggest me some sample apps that work using RSSI technique. I
> want to broadcast the RSSI values over the motes. Which app can help me out?
> There is RssiDemo in apps/tutorial/RssiDemo. But its not getting compiled.
> Resulted out with errors. Can anyother app help me out? Please send me some
> sample codes of complete application that works out for Rssi Broadcast or
> suggest me some app that can do this better.
> Thanks,
> Vinodh.
>
> _______________________________________________
> 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

Reply via email to