當前位置: 首頁>>編程示例 >>用法及示例精選 >>正文


Arduino ArduinoBLE - bleCharacteristic.descriptor()用法及代碼示例

獲取一個 BLEDescriptor,該 BLEDescriptor 代表一個特性 Bluetooth® Low Energy 說明符。

用法

bleCharacteristic.descriptor(index)
bleCharacteristic.descriptor(uuid)
bleCharacteristic.descriptor(uuid, index)

參數

  • index: 說明符索引
  • uuid:uuid(作為 String )

返回

  • BLEDescriptor,表示特性 Bluetooth® Low Energy 說明符

示例


  if (characteristic.hasDescriptor("2901")) {
    Serial.println("characteristic has description descriptor");
  }


相關用法


注:本文由純淨天空篩選整理自arduino.cc大神的英文原創作品 ArduinoBLE - bleCharacteristic.descriptor()。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。