Interface: tos.interfaces.PacketLink

interface PacketLink

Author:
David Moss
Jon Wyant

Commands
command uint16_t getRetries(message_t *msg)
command uint16_t getRetryDelay(message_t *msg)
command void setRetries(message_t *msg, uint16_t maxRetries) Set the maximum number of times attempt message delivery Default is 0
command void setRetryDelay(message_t *msg, uint16_t retryDelay) Set a delay between each retry attempt
command bool wasDelivered(message_t *msg)

Commands - Details

getRetries

command uint16_t getRetries(message_t *msg)

Parameters:
'message_t* ONE msg'
Returns:
the maximum number of retry attempts for this message

getRetryDelay

command uint16_t getRetryDelay(message_t *msg)

Parameters:
'message_t* ONE msg'
Returns:
the delay between retry attempts in ms for this message

setRetries

command void setRetries(message_t *msg, uint16_t maxRetries)

Set the maximum number of times attempt message delivery Default is 0

Parameters:
'message_t* ONE msg'
maxRetries - the maximum number of attempts to deliver the message

setRetryDelay

command void setRetryDelay(message_t *msg, uint16_t retryDelay)

Set a delay between each retry attempt

Parameters:
msg -
retryDelay - the delay betweeen retry attempts, in milliseconds

wasDelivered

command bool wasDelivered(message_t *msg)

Parameters:
'message_t* ONE msg'
Returns:
TRUE if the message was delivered.