开发者

Why BluetoothChat sample cannot connect?

开发者 https://www.devze.com 2023-01-12 21:08 出处:网络
I am usin开发者_运维问答g the default android sample code \"Bluetooth Chat\" with HTC Hero. Search device is working and when I click on the list, it can do the pair job and display connecting on the

I am usin开发者_运维问答g the default android sample code "Bluetooth Chat" with HTC Hero. Search device is working and when I click on the list, it can do the pair job and display connecting on the title. But it will throw IOException when call BluetoothServer.connect().

PS: I am not connecting to a bluetooth adapter on PC.


I fount the reason. The bluetooth adapter can only support Obex Push Object Protocol. So change the UUID to 00001105-0000-1000-8000-00805F9B34FB is ok now.

0

精彩评论

暂无评论...
验证码 换一张
取 消