readNextMessage
Syntax
Description
reads the next message from the selection of messages available in the msg
= readNextMessage(msgReader
)ibeoMessageReader
object, msgReader
. By default,
readNextMessage
starts reading from the first message in the
selection and reads subsequent messages during successive calls, all the way to the last
available message. To reset the reading back to the first message, use reset
method
on the ibeoMessageReader
object. If the MessageType
property of
msgReader
is 'object'
, this syntax returns the
next online object message.
[
returns the metadata associated with, rawMsg
,procMsg
,rawMetadata
,procMetadata
] = readNextMessage(msgReader
)rawMsg
and
procMsg
. To use this syntax, the MessageType
property of msgReader
must be 'object'
.
[___] = readNextMessage(
reads the next message from the selection of messages, that correspond to the specified
device, msgReader
,'DeviceID',deviceID)deviceID
.
Examples
Input Arguments
Output Arguments
More About
Version History
Introduced in R2021a
See Also
ibeoFileReader
| select
| reset
| hasNextMessage
| readMessages