1

当我的中央设备尝试发现服务、特征及其描述符时,一切都很好,但是当中央设备尝试在客户端配置特征描述符中搜索具有通知属性的特征时,却找不到它。

这就是我描述我的特点的方式:

BluetoothGattCharacteristic responseCharacteristic = new BluetoothGattCharacteristic(Constants.rUuid,
    BluetoothGattCharacteristic.PROPERTY_READ | BluetoothGattCharacteristic.PROPERTY_NOTIFY,
    BluetoothGattCharacteristic.PERMISSION_READ);

我的描述符:

BluetoothGattDescriptor notifyDescriptor = new BluetoothGattDescriptor(Constants.nUuid, 
  BluetoothGattDescriptor.PERMISSION_READ );

将描述符添加到特征

responseCharacteristic.addDescriptor(notifyDescriptor);

请从嗅探器中查看此图像,表明中央设备尝试查找类型为“0x2902”的描述符,但此后没有回复

嗅探器截图

而其他特征和服务被发现很好

服务和特征嗅探器截图

谁能让我知道为什么会这样?使用 Nexus5X 作为 BLE 外围设备时,是否有人发现任何此类问题?

4

0 回答 0