mBluetoothGatt.getService(uuid) returns null

前端 未结 3 1249
误落风尘
误落风尘 2021-01-18 08:34

In my app , i am passng the UUID number of the hearing aid service as in the BLE sample from google i.e. 0000a00-0000-1000-8000-00805f9b34fb

But the getservice retur

3条回答
  •  误落风尘
    2021-01-18 09:17

    Try doing a full discover[1] of the remote database and then iterate through the services. Maybe you've got the UUID wrong.

    [1] http://developer.android.com/reference/android/bluetooth/BluetoothGatt.html#discoverServices()

提交回复
热议问题