ArduinoBLE - bleCharacteristic.canUnsubscribe()

Query if a Bluetooth® Low Energy characteristic is unsubscribable.

Syntax

bleCharacteristic.canUnsubscribe()

Parameters

None

Returns

  • true, if characteristic is unsubscribable,
  • false otherwise

Example


  if (characteristic.canUnsubscribe()) {
    Serial.println("characteristic is unsubscribable");
  }