This is the documentation for the latest (main) development branch. If you are looking for the documentation of previous releases, use the drop-down menu on the left and select the desired version.

Bluetooth: Broadcaster

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

  • A board with BLE support

Building and Running

examples/bluetooth/broadcaster

compile, burn, and more, see get-started chapter 。

Running result

I/broadcaster     [0.110] Starting Broadcaster

I/bt_hci_core     [0.134] Identity: 28:6D:CE:01:02:03 (public)
I/bt_hci_core     [0.140] HCI: version 4.2 (0x08) revision 0x0709, manufacturer 0x070c
I/bt_hci_core     [0.146] LMP: version 4.2 (0x08) subver 0x0709
I/broadcaster     [0.152] Bluetooth initialized

I/broadcaster     [1.156] Sending advertising data: 0x00

I/broadcaster     [3.162] Sending advertising data: 0x01

I/broadcaster     [5.168] Sending advertising data: 0x02

I/broadcaster     [7.174] Sending advertising data: 0x03

I/broadcaster     [9.180] Sending advertising data: 0x04