Search in sources :

Example 1 with BleConnector

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();
}
Also used : BluetoothDevice(android.bluetooth.BluetoothDevice) BleConnector(com.afunx.ble.blelitelib.connector.BleConnector)

Aggregations

BluetoothDevice (android.bluetooth.BluetoothDevice)1 BleConnector (com.afunx.ble.blelitelib.connector.BleConnector)1