ArduinoBLE - canWrite()

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