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.silvercrestwifisocket.internal.enums;
16 * This enum represents the available Wifi Socket request types.
18 * @author Jaime Vaz - Initial contribution
21 public enum SilvercrestWifiSocketRequestType {
23 ON("010000FFFF04040404"),
25 OFF("01000000FF04040404"),
26 /** Request Status. */
27 GPIO_STATUS("020000000004040404"),
28 /** Discover socket. The command has one placeholder for the mac address. */
29 DISCOVERY("23%s0202");
31 private String command;
33 private SilvercrestWifiSocketRequestType(final String command) {
34 this.command = command;
38 * Gets the hexadecimal command/format for include in request messages.
40 * @return the hexadecimal command/format
42 public String getCommand() {