configureCallback
Set callback function and trigger condition for communication with Bluetooth device
Syntax
Description
configureCallback(
sets the callback function device,"terminator",callbackFcn)callbackFcn to trigger whenever a terminator
is available to be read from the specified Bluetooth® device. The syntax sets the BytesAvailableFcnMode
property of device to "terminator" and the
BytesAvailableFcn property to
callbackFcn.
Set the terminator character using configureTerminator.
configureCallback(
sets the callback function device,"byte",count,callbackFcn)callbackFcn to trigger whenever a new
count number of bytes are available to be read. The syntax sets the
BytesAvailableFcnMode property of device to
"byte", the BytesAvailableFcnCount property to
count, and the BytesAvailableFcn property to
callbackFcn.
Examples
Input Arguments
Version History
Introduced in R2020b