]> git.basschouten.com Git - openhab-addons.git/blob
33ba00493961da7b07053b96ecd83d344ac1ccbe
[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.internal;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.binding.bluetooth.BaseBluetoothBridgeHandlerConfiguration;
17
18 /**
19  * Configuration class for {@link BlueGigaConfiguration} device.
20  *
21  * @author Pauli Anttila - Initial contribution
22  */
23 @NonNullByDefault
24 public class BlueGigaConfiguration extends BaseBluetoothBridgeHandlerConfiguration {
25     public String port = "";
26     public int passiveScanIdleTime;
27     public int passiveScanInterval;
28     public int passiveScanWindow;
29     public int activeScanInterval;
30     public int activeScanWindow;
31     public int connIntervalMin;
32     public int connIntervalMax;
33     public int connLatency;
34     public int connTimeout;
35
36     @Override
37     public String toString() {
38         return String.format("""
39                 [discovery=%b, port=%s, passiveScanIdleTime=%d, passiveScanInterval=%d, passiveScanWindow=%d\
40                 , activeScanInterval=%d, activeScanWindow=%d, connIntervalMin=%d, connIntervalMax=%d\
41                 , connLatency=%d, connTimeout=%d]\
42                 """, backgroundDiscovery, port, passiveScanIdleTime, passiveScanInterval, passiveScanWindow,
43                 activeScanInterval, activeScanWindow, connIntervalMin, connIntervalMax, connLatency, connTimeout);
44     }
45 }