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();
.