ArduinoBLE - setAppearance()

Set the appearance in the built in appearance characteristic. If not set, the value defaults 0x0000.

Syntax

BLE.setAppearance(appearance)

Parameters

appearance: appearance value

Returns

Nothing

Example


 // begin initialization
  if (!BLE.begin()) {
    Serial.println("starting BLE failed!");

    while (1);
  }

  BLE.setAppearance(0x8000);

  // ...  

  // start advertising
  BLE.advertise();