Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 996 Bytes

Change-the-Bluetooth-broadcast-name.md

File metadata and controls

19 lines (13 loc) · 996 Bytes
title id
Change the Bluetooth® broadcast name
360018922199

When using the ArduinoBLE library to enable Bluetooth Low Energy communication on an Arduino board, the broadcasted name is set by the setLocalName() function.

For example, you can set the name to MyArduinoDevice.

BLE.setLocalName("MyArduinoDevice");

If using an example, first check if BLE.setLocalName() is already called somewhere. In this case, just replace the existing name. Otherwise, make sure to add the line after the device has been initialized with BLE.begin(), but before it's advertised with BLE.advertise();.

Further reading