Good day.
I was able to create a stable connection to the BT device.
To do this, I changed your code:
BluetoothSocket btsocket =
btdev.createRfcommSocketToServiceRecord(uuid);
btsocket.connect();
Upon:
int RFCOMM_CHANEL = 1; //SPP chanel
Method m = btdev.getClass().getMethod("createRfcommSocket",
Good day.
I was able to create a stable connection to the BT device.
To do this, I changed your code:
BluetoothSocket btsocket =
btdev.createRfcommSocketToServiceRecord(uuid);
btsocket.connect();
Upon:
int RFCOMM_CHANEL = 1; //SPP chanel
Method m = btdev.getClass().getMethod("createRfcommSocket",
Good day.
I was able to create a stable connection to the BT device.
To do this, I changed your code:
BluetoothSocket btsocket =
btdev.createRfcommSocketToServiceRecord(uuid);
btsocket.connect();
Upon:
int RFCOMM_CHANEL = 1; //SPP chanel
Method m = btdev.getClass().getMethod("createRfcommSocket",
3 matches
Mail list logo