Read a message from a queue/mailbox.
Read a message from a mailbox and optionally remove it. If the local mailbox is empty and this NXT is the master then it attempts to poll one of its slave NXTs for a message from the response mailbox that corresponds to the specified local mailbox number.
- Parameters
-
queue | The mailbox number. See Mailbox constants. |
clear | A flag indicating whether to remove the message from the mailbox after it has been read. |
msg | The message that is read from the mailbox. |
- Returns
- A char value indicating whether the function call succeeded or not.