Set the device name in the built in device name characteristic. If not set, the value defaults “Arduino”.
BLE.setDeviceName(name)
Nothing
// begin initialization
if (!BLE.begin()) {
Serial.println("starting Bluetooth® Low Energy module failed!");
while (1);
}
BLE.setDeviceName("LED");
// ...
// start advertising
BLE.advertise();