Bluetooth Low Energy (formerly known as Bluetooth Smart) is a wireless communication protocol that uses Bluetooth with low-power peripheral devices. These peripheral devices include fitness trackers, health monitors, and personal electronics such as smartwatches or wireless headphones. Bluetooth Low Energy communication support in MATLAB® is different from the Bluetooth Communication (Instrument Control Toolbox) interface in Instrument Control Toolbox™.
To connect to peripheral devices that support Bluetooth Low Energy, your computer needs to have a built-in or external Bluetooth 4.0 adapter. After you connect to a device, use MATLAB to read from or write data to it. You can work with both standard and custom services, characteristics, and descriptors.
To learn more about the standards and specifications of Bluetooth Low Energy communication, see Bluetooth SIG.
|Scan nearby Bluetooth Low Energy peripheral devices|
|Connect to Bluetooth Low Energy peripheral device|
|Access a characteristic on Bluetooth Low Energy peripheral device|
|Access a descriptor on Bluetooth Low Energy peripheral device|
|Read characteristic or descriptor data on a Bluetooth Low Energy peripheral device|
|Write data to a characteristic or descriptor on a Bluetooth Low Energy peripheral device|
|Subscribe to notification or indication from a characteristic|
|Unsubscribe from notification and indication from a characteristic|
Learn about the basic concepts and terminology for working with the Bluetooth Low Energy protocol.
Scan for and connect to a Bluetooth Low Energy peripheral device. You can view the advertising data of each device to determine the device type and whether it is connectable before creating a connection.
Control Bluetooth Low Energy peripheral devices by reading or writing characteristics and descriptors. You can work with both standard and custom characteristics and descriptors.
This example shows how to collect and plot data from fitness monitoring devices using Bluetooth® Low Energy communication.
This example shows how to track device orientation with device motion sensor data using Bluetooth® Low Energy communication.
Try these steps if you are having trouble with your device.