BALTECH Docs |
C API for BALTECH SDK
|
brp_errcode brp_MsgQueue_Send | ( | brp_protocol | protocol, |
brp_buf | SendMsg, | ||
size_t | SendMsg_len, | ||
unsigned | Timeout | ||
) |
Put a message into the Message Queue and wait a maximum time of Timeout ms until the message has been picked up.
If the queue already contains a message that originates from another host MSGQ_COLLISION_ERR is returned; the message must be removed from the queue first with the Receive command. If the message is not picked up from another host within Timeout ms MSGQ_NOTACKED_TIMEOUT_ERR is returned.
[in] | protocol | used to execute the command |
[in] | SendMsg | Message to send. |
[in] | SendMsg_len | |
[in] | Timeout | Max. time (in ms) to wait for message pickup. |