ArduinoBLE - bleCharacteristic.canSubscribe()

Query if a Bluetooth® Low Energy 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");
  }