Search in sources :

Example 1 with PebbleSupport

use of nodomain.freeyourgadget.gadgetbridge.service.devices.pebble.PebbleSupport in project Gadgetbridge by Freeyourgadget.

the class DeviceSupportFactory method createTCPDeviceSupport.

private DeviceSupport createTCPDeviceSupport(GBDevice gbDevice) throws GBException {
    try {
        DeviceSupport deviceSupport = new ServiceDeviceSupport(new PebbleSupport(), EnumSet.of(ServiceDeviceSupport.Flags.BUSY_CHECKING));
        deviceSupport.setContext(gbDevice, mBtAdapter, mContext);
        return deviceSupport;
    } catch (Exception e) {
        // FIXME: localize
        throw new GBException("cannot connect to " + gbDevice, e);
    }
}
Also used : PebbleSupport(nodomain.freeyourgadget.gadgetbridge.service.devices.pebble.PebbleSupport) GBException(nodomain.freeyourgadget.gadgetbridge.GBException) GBException(nodomain.freeyourgadget.gadgetbridge.GBException)

Aggregations

GBException (nodomain.freeyourgadget.gadgetbridge.GBException)1 PebbleSupport (nodomain.freeyourgadget.gadgetbridge.service.devices.pebble.PebbleSupport)1