Interface: tos.interfaces.Intercept

interface Intercept

Events
event bool forward(message_t *msg, void *payload, uint8_t len) Signals that a message has been received, which is supposed to be forwarded to another destination.

Events - Details

forward

event bool forward(message_t *msg, void *payload, uint8_t len)

Signals that a message has been received, which is supposed to be forwarded to another destination.

Parameters:
'message_t* ONE msg' The complete message received.
'void* COUNT(len) payload' The payload portion of the packet for this protocol layer.
len - The length of the payload buffer.
Returns:
TRUE indicates the packet should be forwarded, FALSE indicates that it should not be forwarded.