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.enocean.internal.eep.Base;
15 import static org.openhab.binding.enocean.internal.messages.ESP3Packet.*;
17 import org.openhab.binding.enocean.internal.messages.ERP1Message;
18 import org.openhab.binding.enocean.internal.messages.ERP1Message.RORG;
22 * @author Dominik Vorreiter - Initial contribution
24 public class _4BSTeachInVariation3Response extends _4BSMessage {
26 public _4BSTeachInVariation3Response(ERP1Message packet, boolean teachIn) {
27 byte[] payload = packet.getPayload(ESP3_RORG_LENGTH, RORG._4BS.getDataLength());
29 payload[3] = (byte) (teachIn ? 0xF0 : 0xD0); // telegram with EEP number and Manufacturer ID,
30 // EEP supported, Sender ID stored or deleted, Response
33 setDestinationId(packet.getSenderId());
34 setSuppressRepeating(false);
35 setStatus((byte) 0x00);