I faced that issue:
I send to BB some data via Bluetooth,
and on BB side method available() of InputStream shows me, that there are some bytes available.
But when I call method read(), it retrieves an IOException, with following message: BtSppRead failed.
What is wrong?
Thanks in advance.
I found a solution, when I’m sending data to BB device, I close socket too quickly.
From desktop side I use WinAPI, so I should use shutdown() for a SOCKET;