Scan nearby Bluetooth Classic devices and check their connection
status.
Use bluetoothlist
to list all nearby devices. If your device is
already connected to another device or application, it might not appear in this list.
Disconnect your device from any other devices or applications first for MATLAB® to
discover it.
devlist=5×4 table
Name Address Channel Status
_____________ ______________ _______ __________________
"Pixel 3" "3C286DD533CA" 8 "Ready to connect"
"HC-06" "98D331FB3B77" 1 "Requires pairing"
"mjin-maci" "A886DDA44062" 3 "Requires pairing"
"DMTDevice" "B0B448F47A4C" Unknown "Unknown"
The Name
and Address
columns identify the
device. The Channel
column indicates the device SPP channel. The
Status
column describes the current device connection
status.
You can also specify a timeout value less than the default 35 seconds on Windows and
20 seconds on macOS.
devlist=3×4 table
Name Address Channel Status
_____________ ______________ _______ __________________
"Pixel 3" "3C286DD533CA" 8 "Ready to connect"
"mjin-maci" "A886DDA44062" 3 "Requires pairing"