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