Interface: tos.interfaces.LinkPacketMetadata

interface LinkPacketMetadata

This interface provides metadata associated with a link layer packet.

Author:
Philip Levis

Commands
command bool highChannelQuality(message_t *msg) Return true if the channel during this packet had high quality (few bit errors).

Commands - Details

highChannelQuality

command bool highChannelQuality(message_t *msg)

Return true if the channel during this packet had high quality (few bit errors). A good rule of thumb for "high quality" is that the channel quality would enable MTU packets to have a reception rate of 90% or greater.

Parameters:
'message_t* ONE msg' A received packet during which the channel was measured.
Returns:
Whether the channel had high quality.