use of com.afunx.ble.blelitelib.connector.BleConnector in project BleLiteLib4android by afunx.
the class BleConnectOperation method run.
@Override
public void run() {
BluetoothDevice bluetoothDevice = BleUtils.getRemoteDevice(mBleAddr);
// bluetoothDevice.fetchUuidsWithSdp();
BleConnector connector = getConnector();
if (connector == null) {
connector = new BleConnector.Builder().build(mAppContext, bluetoothDevice).setGattCallback(mBluetoothGattCallback).create();
setConnector(connector);
}
connector.connect();
}
Aggregations