ArduinoBLE - canSubscribe()

Query if a BLE characteristic is subscribable.

Syntax

bleCharacteristic.canSubscribe()

Parameters

None

Returns

true, if characteristic is subscribable, false otherwise

Example


  if (characteristic.canSubscribe()) {
    Serial.println("characteristic is subscribable");
  }