Search in sources :

Example 1 with BlueZBridgeHandler

use of org.eclipse.smarthome.binding.bluetooth.bluez.handler.BlueZBridgeHandler in project smarthome by eclipse.

the class BlueZHandlerFactory method createHandler.

@Override
protected ThingHandler createHandler(Thing thing) {
    ThingTypeUID thingTypeUID = thing.getThingTypeUID();
    if (thingTypeUID.equals(BlueZAdapterConstants.THING_TYPE_BLUEZ)) {
        BlueZBridgeHandler handler = new BlueZBridgeHandler((Bridge) thing);
        registerBluetoothAdapter(handler);
        return handler;
    } else {
        return null;
    }
}
Also used : ThingTypeUID(org.eclipse.smarthome.core.thing.ThingTypeUID) BlueZBridgeHandler(org.eclipse.smarthome.binding.bluetooth.bluez.handler.BlueZBridgeHandler)

Aggregations

BlueZBridgeHandler (org.eclipse.smarthome.binding.bluetooth.bluez.handler.BlueZBridgeHandler)1 ThingTypeUID (org.eclipse.smarthome.core.thing.ThingTypeUID)1