This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] CC2652P:未启用 Android BLE 通知。

Guru**** 2589280 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/920407/cc2652p-android-ble-notification-not-enabling

器件型号:CC2652P
  • 尊敬的 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

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    嗨、Ganesh、

    这似乎是 Android 代码、对吧? 我们不支持有关 Android 蓝牙库和应用的问题。 我们仅支持用于蓝牙芯片的 TI 软件。 我建议您将问题发布在堆栈溢出等网站上。