Interface: tos.interfaces.BareSendMsg

interface BareSendMsg

Functionality for sending a raw packet buffer; unaware of message structure (besides length). This is in contrast to SendMsg, which takes parameters for message headers.

Author:
Jason Hill
David Gay
Philip Levis

Commands
command result_t send(TOS_MsgPtr msg) Send a message buffer over a communiation channel.

Events
event result_t sendDone(TOS_MsgPtr msg, result_t success) Signals that a buffer was sent; success indicates whether the send was successful or not.

Commands - Details

send

command result_t send(TOS_MsgPtr msg)

Send a message buffer over a communiation channel.

Returns:
SUCCESS if the buffer will be sent, FAIL if not. If SUCCESS, a sendDone should be expected, if FAIL, the event should not be expected.

Events - Details

sendDone

event result_t sendDone(TOS_MsgPtr msg, result_t success)

Signals that a buffer was sent; success indicates whether the send was successful or not.

Returns:
SUCCESS always.