]> git.basschouten.com Git - openhab-addons.git/blob
a258601dffc1ab75eea4157dea6cba35cc11a2c3
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2020 Contributors to the openHAB project
3  *
4  * See the NOTICE file(s) distributed with this work for additional
5  * information.
6  *
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
10  *
11  * SPDX-License-Identifier: EPL-2.0
12  */
13 package org.openhab.binding.bluetooth;
14
15 import java.util.UUID;
16
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.openhab.core.thing.ThingTypeUID;
19
20 /**
21  * The {@link BluetoothBindingConstants} class defines common constants, which are
22  * used across the whole binding.
23  *
24  * @author Chris Jackson - Initial contribution
25  * @author Kai Kreuzer - refactoring and extension
26  */
27 @NonNullByDefault
28 public class BluetoothBindingConstants {
29
30     public static final String BINDING_ID = "bluetooth";
31
32     // List of all Thing Type UIDs
33     public static final ThingTypeUID THING_TYPE_BEACON = new ThingTypeUID(BINDING_ID, "beacon");
34
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";
39
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";
43
44     public static final String CONFIGURATION_ADDRESS = "address";
45     public static final String CONFIGURATION_DISCOVERY = "backgroundDiscovery";
46
47     public static final long BLUETOOTH_BASE_UUID = 0x800000805f9b34fbL;
48
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");
60 }