ESP Peripheral

Browse source code on GitHub

Overview

Similar to the Peripheral sample, except that this application specifically exposes the ESP (Environmental Sensing Profile) GATT Service.

Requirements

  • BlueZ running on the host, or

  • A board with Bluetooth LE support

Building and Running

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

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

After flashing, use a Bluetooth scanner app (e.g. nRF Connect) to connect to the device and subscribe to the temperature sensor characteristics to receive notifications when the temperature values change. The service also exposes a read-only humidity characteristic.

See also

Generic Attribute Profile (GATT)
Battery Service (BAS)
Bluetooth APIs