Central / GATT Write

Browse source code on GitHub

Overview

Similar to the Central sample, except that this application use GATT Write Without Response.

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/central_gatt_write
west flash

After flashing, the sample scans for nearby Bluetooth LE devices, connects to the first one found, and continuously sends GATT Write Without Response commands. Use the Peripheral GATT Write sample on a second board as the peripheral.

See also

Bluetooth APIs