Bluetooth -> service discovery failed

前端 未结 6 2218
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-31 21:55

I\'m writing an application that is able to communicate with my PC. I have used the Bluetooth functionalities of the SDK 2.1.

I can find devices, get their MAC address,

6条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-31 22:19

    I had the same problem when reconnecting SPP after the first connect.

    This is because rfcomm channel=-1 in BluetoothService.java. I added updateDeviceServiceChannelCache() to the end of fetchRemoteUuids(), and then it worked!

提交回复
热议问题