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);
}
Aggregations