-
尊敬的 TI 团队
我已通过以下步骤启用通知。
gatt.setCharacteristicNotification(mNotifyCharacteristics、true);
BluetoothGattDescriptor desc = mReadCharacteristics.getDescriptor (GattInfo.client_characteristic_config);
desc.setValue(BluetoothGattDescriptor.ENABLE_NOTIFICATION_VALUE)//返回 true
GATT.writeDescriptor (desc);//返回 false
但它没有被调用 onCharacteristic Changed。
@覆盖
公共空特性更改(BluetoothGatt GATT、BluetoothGattCharacteristic Characteristic)
{
广播更新(ACT_DATA_NOTIFY、Characteristic、BluetoothGATT.GATT_SUCCESS);
}//不调用
如果有任何问题、请更正。 因为它无法正常工作、我现在无法找到问题。
此致、
Ganesh
-