Android Bluetooth: Software Caused Connection Abort

后端 未结 1 515
故里飘歌
故里飘歌 2021-01-21 16:40

I am getting exception whenever I am trying to connect with android device to bluettoth enabled device, it is connecting and withina couple of a minute it is getting exception.

相关标签:
1条回答
  • 2021-01-21 17:26

    I had the same problem with a server which started after a bluetooth broadcast. The solution was to send a byte after the server established a connection via BluetoothServerSocket.accept(). The client reads after BluetoothSocket.connect() one byte. So both ends are in sync.

    0 讨论(0)
提交回复
热议问题