]> git.basschouten.com Git - openhab-addons.git/blob
f0d8074bb68302662c383cb5d6caf635d9d7e618
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2022 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.sinope.internal.core;
14
15 import java.io.IOException;
16 import java.io.InputStream;
17
18 import org.openhab.binding.sinope.internal.core.base.SinopeRequest;
19
20 /**
21  * The Class SinopePingRequest.
22  * 
23  * @author Pascal Larin - Initial contribution
24  */
25 public class SinopePingRequest extends SinopeRequest {
26
27     /**
28      * @see org.openhab.binding.sinope.internal.core.base.SinopeFrame#getCommand()
29      */
30     @Override
31     protected byte[] getCommand() {
32         return new byte[] { 0x00, 0x12 };
33     }
34
35     /**
36      * @see org.openhab.binding.sinope.internal.core.base.SinopeFrame#getFrameData()
37      */
38     @Override
39     protected byte[] getFrameData() {
40         return new byte[0];
41     }
42
43     /**
44      * @see org.openhab.binding.sinope.internal.core.base.SinopeRequest#getReplyAnswer(java.io.InputStream)
45      */
46     @Override
47     public SinopePingAnswer getReplyAnswer(InputStream r) throws IOException {
48         return new SinopePingAnswer(r);
49     }
50 }