2 * Copyright (c) 2010-2020 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
7 * This program and the accompanying materials are made available under the
8 * terms of the Eclipse Public License 2.0 which is available at
9 * http://www.eclipse.org/legal/epl-2.0
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.bluetooth;
15 import java.util.UUID;
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.openhab.core.thing.ThingTypeUID;
21 * The {@link BluetoothBindingConstants} class defines common constants, which are
22 * used across the whole binding.
24 * @author Chris Jackson - Initial contribution
25 * @author Kai Kreuzer - refactoring and extension
28 public class BluetoothBindingConstants {
30 public static final String BINDING_ID = "bluetooth";
32 // List of all Thing Type UIDs
33 public static final ThingTypeUID THING_TYPE_BEACON = new ThingTypeUID(BINDING_ID, "beacon");
35 // List of all Channel Type IDs
36 public static final String CHANNEL_TYPE_RSSI = "rssi";
37 public static final String CHANNEL_TYPE_ADAPTER = "adapterUID";
38 public static final String CHANNEL_TYPE_ADAPTER_LOCATION = "adapterLocation";
40 public static final String PROPERTY_TXPOWER = "txpower";
41 public static final String PROPERTY_MAXCONNECTIONS = "maxconnections";
42 public static final String PROPERTY_SOFTWARE_VERSION = "softwareVersion";
44 public static final String CONFIGURATION_ADDRESS = "address";
45 public static final String CONFIGURATION_DISCOVERY = "backgroundDiscovery";
47 public static final long BLUETOOTH_BASE_UUID = 0x800000805f9b34fbL;
49 // Bluetooth profile UUID definitions
50 public static final UUID PROFILE_GATT = UUID.fromString("00001801-0000-1000-8000-00805f9b34fb");
51 public static final UUID PROFILE_A2DP_SOURCE = UUID.fromString("0000110a-0000-1000-8000-00805f9b34fb");
52 public static final UUID PROFILE_A2DP_SINK = UUID.fromString("0000110b-0000-1000-8000-00805f9b34fb");
53 public static final UUID PROFILE_A2DP = UUID.fromString("0000110d-0000-1000-8000-00805f9b34fb");
54 public static final UUID PROFILE_AVRCP_REMOTE = UUID.fromString("0000110c-0000-1000-8000-00805f9b34fb");
55 public static final UUID PROFILE_CORDLESS_TELEPHONE = UUID.fromString("00001109-0000-1000-8000-00805f9b34fb");
56 public static final UUID PROFILE_DID_PNPINFO = UUID.fromString("00001200-0000-1000-8000-00805f9b34fb");
57 public static final UUID PROFILE_HEADSET = UUID.fromString("00001108-0000-1000-8000-00805f9b34fb");
58 public static final UUID PROFILE_HFP = UUID.fromString("0000111e-0000-1000-8000-00805f9b34fb");
59 public static final UUID PROFILE_HFP_AUDIOGATEWAY = UUID.fromString("0000111f-0000-1000-8000-00805f9b34fb");