Set the appearance in the built in appearance characteristic. If not set, the value defaults 0x0000.
BLE.setAppearance(appearance)
Nothing
// begin initialization
if (!BLE.begin()) {
Serial.println("starting Bluetooth® Low Energy module failed!");
while (1);
}
BLE.setAppearance(0x8000);
// ...
// start advertising
BLE.advertise();