Search in sources :

Example 1 with BleServicesAdapter

use of sample.ble.sensortag.ui.adapters.BleServicesAdapter in project BleSensorTag by StevenRudenko.

the class DeviceServicesActivity method displayGattServices.

private void displayGattServices(List<BluetoothGattService> gattServices) {
    if (gattServices == null) {
        return;
    }
    final DeviceDef def = getBleManager().getDeviceDefCollection().get(getDeviceName(), getDeviceAddress());
    gattServiceAdapter = new BleServicesAdapter(this, gattServices, def);
    gattServiceAdapter.setServiceListener(this);
    gattServicesList.setAdapter(gattServiceAdapter);
}
Also used : BleServicesAdapter(sample.ble.sensortag.ui.adapters.BleServicesAdapter) DeviceDef(com.chimeraiot.android.ble.sensor.DeviceDef)

Aggregations

DeviceDef (com.chimeraiot.android.ble.sensor.DeviceDef)1 BleServicesAdapter (sample.ble.sensortag.ui.adapters.BleServicesAdapter)1