ArduinoBLE - bleCharacteristic.canWrite()

Query if a Bluetooth® Low Energy characteristic is writable.

Syntax

bleCharacteristic.canWrite()

Parameters

None

Returns

  • true, if characteristic is writable,
  • false otherwise

Example


  if (characteristic.canWrite()) {
    Serial.println("characteristic is writable");
  }