ST Bluetooth LE Sensor Demo

Browse source code on GitHub

Overview

This application demonstrates Bluetooth LE peripheral by exposing vendor-specific GATT services. Currently only button notification and LED service are implemented. Other Bluetooth LE sensor services can easily be added. See BlueST protocol document for details of how to add a new service.

Requirements

Building and Running

Build and flash the sample as follows, replacing <board> with your target board:

west build -b <board> samples/bluetooth/st_ble_sensor
west flash

Open the ST Bluetooth LE Sensor Android app and tap “CONNECT TO A DEVICE” to scan for Bluetooth LE devices. Tap the device in the list to connect. Once connected, tap the LED image in the app to test the LED service, or push the SW0 button on the board to test the button notification service.

See also

Generic Attribute Profile (GATT)
Bluetooth APIs