12-12-2012 04:31 PM
Purpose:
Data retrieve from a RFCOMM bluetooth device.
Problem:
Can use Android device to do that, but fail on BB device.
String uuid = "00001101-0000-1000-8000-00805F9B34FB";
sock = bt.getRemoteDevice(addr).createRfcommSocketToServi
sock.connect();
Try to find the same way on BB 9900.
code:
UUID[] uuidSet = {new UUID(_uuid)};
int[] attrSet = {0x0100};
bugrecord.writeStringToLog("UUID[] uuidSet\n");
RemoteDevice _remoteDevice = (RemoteDevice) _model.getRow(_view.getRowNumberWithFocus());
//stop here?? searchService does not support RFCOMM.
_discoveryAgent.searchServices(attrSet, uuidSet, _remoteDevice, ClientScreen.this);
Does anyone know how to find a RFCOMM service by bluetooth??
Thank your attention,