Interface: tos.interfaces.Intercept
interface InterceptEvents
event bool forward(message_t *msg, void *payload, uint8_t len)
Events - Details
forward
event bool forward(message_t *msg, void *payload, uint8_t len)
- 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.