properties()



Açıklama

Belirtilen BLEC karakteristik özellik maskesini sorgulayın .

Sözdizimi

bleCharacteristic.properties ()

Parametreler

Yok

İadeler

Karakteristikleri, maskeli (BLEBroadcast, BLERead, BLEWriteWithoutResponse, BLEWrite, BLENotify, BLEIndicate)

Misal


// BLE LED Switch Characteristic - custom 128-bit UUID, read and writable by central
BLEByteCharacteristic switchCharacteristic("19B10001-E8F2-537E-4F6C-D104768A1214", BLERead | BLEWrite);

// …
byte properties = switchCharacteristic.properties();

if (properties & BLERead) {
  // characteristic is readable ...
}

if (properties & (BLEWrite | BLEWriteWithoutResponse)) {
  // characteristic is writable ...
}

See Also