]> git.basschouten.com Git - openhab-addons.git/blob
e520daf1be697f3cca600633ed55ab93291ee2be
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 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.bluegiga;
14
15 import java.util.UUID;
16
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.openhab.binding.bluetooth.BluetoothCharacteristic;
19
20 /**
21  * The {@link BlueGigaBluetoothCharacteristic} class extends BluetoothCharacteristic
22  * to provide write access to certain BluetoothCharacteristic fields that BlueGiga
23  * may not be initially aware of during characteristic construction but must be discovered
24  * later.
25  *
26  * @author Connor Petty - Initial contribution
27  *
28  */
29 @NonNullByDefault
30 public class BlueGigaBluetoothCharacteristic extends BluetoothCharacteristic {
31
32     private boolean notifying;
33
34     public BlueGigaBluetoothCharacteristic(int handle) {
35         super(null, handle);
36     }
37
38     public void setProperties(int properties) {
39         this.properties = properties;
40     }
41
42     public void setHandle(int handle) {
43         this.handle = handle;
44     }
45
46     public void setUUID(UUID uuid) {
47         this.uuid = uuid;
48     }
49
50     public boolean isNotifying() {
51         return notifying;
52     }
53
54     public void setNotifying(boolean enable) {
55         this.notifying = enable;
56     }
57 }