2 * Copyright (c) 2010-2022 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.sinope.internal.core;
15 import java.io.IOException;
16 import java.io.InputStream;
18 import org.openhab.binding.sinope.internal.core.base.SinopeRequest;
21 * The Class SinopePingRequest.
23 * @author Pascal Larin - Initial contribution
25 public class SinopePingRequest extends SinopeRequest {
28 * @see org.openhab.binding.sinope.internal.core.base.SinopeFrame#getCommand()
31 protected byte[] getCommand() {
32 return new byte[] { 0x00, 0x12 };
36 * @see org.openhab.binding.sinope.internal.core.base.SinopeFrame#getFrameData()
39 protected byte[] getFrameData() {
44 * @see org.openhab.binding.sinope.internal.core.base.SinopeRequest#getReplyAnswer(java.io.InputStream)
47 public SinopePingAnswer getReplyAnswer(InputStream r) throws IOException {
48 return new SinopePingAnswer(r);