Wait for a message and return its content. If no message is received within Timeout ms MSGQ_RECV_TIMEOUT_ERR is returned. If a previously sent message has not been picked up by another host within Timeout ms MSGQ_NOTACKED_TIMEOUT_ERR is returned.
- Parameters
-
[in] | protocol | used to execute the command |
[in] | Timeout | Max. time (in ms) to wait for a message. |
[out] | RecvMsg | Received Message. |
[out] | RecvMsg_len | |
[in] | mempool | is used to store response data. Maybe NULL to use an internal mempool, in this case the data is only available until another command uses the internal mempool |