Broadcaster

Browse source code on GitHub

Overview

A simple application demonstrating Bluetooth Low Energy Broadcaster role functionality. The application will periodically send out advertising packets with a manufacturer data element. The content of the data is a single byte indicating how many advertising packets the device has sent (the number will roll back to 0 after 255).

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

To verify the sample is working, use a Bluetooth scanner app on a smartphone (e.g. nRF Connect or LightBlue) and observe the advertising packets. Alternatively, flash the Observer sample on a second board and observe the console output.

See also

Bluetooth APIs