]> git.basschouten.com Git - openhab-addons.git/blob
49a0cdae330dfb1388d6a1383605f42972bf0172
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2021 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.enocean.internal.config;
14
15 import static org.openhab.binding.enocean.internal.EnOceanBindingConstants.EMPTYENOCEANID;
16
17 import java.util.ArrayList;
18 import java.util.List;
19
20 import org.openhab.core.util.HexUtils;
21
22 /**
23  *
24  * @author Daniel Weber - Initial contribution
25  */
26 public class EnOceanBaseConfig {
27     public String enoceanId;
28
29     public List<String> receivingEEPId = new ArrayList<>();
30     public boolean receivingSIGEEP = false;
31
32     public EnOceanBaseConfig() {
33         enoceanId = EMPTYENOCEANID;
34     }
35
36     public byte[] getEnOceanId() {
37         return HexUtils.hexToBytes(enoceanId);
38     }
39 }