2 * Copyright (c) 2010-2023 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.bluegiga.internal;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.binding.bluetooth.BaseBluetoothBridgeHandlerConfiguration;
19 * Configuration class for {@link BlueGigaConfiguration} device.
21 * @author Pauli Anttila - Initial contribution
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;
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);