ArduinoBLE - canUnsubscribe()

Query if a BLE 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");
  }