Hi
I'm trying to connect two devices simultaneously using two jBluetoothClientSocket.
I connect jBluetoothClientSocket1 - it's ok, it receives the data from first device
I connect jBluetoothClientSocket2 - no exceptions, but not received any data from second device.
When close connection on jBluetoothClientSocket1, jBluetoothClientSocket2 return data (buffered?) from second device and works ok.
thanks a lot
EDIT:
I found a simple solution.
In jBluetoothClientSocket.java
instead:
new ASocketClientTask().execute();
should be:
new ASocketClientTask().executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);