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.novafinedust.internal.sds011protocol.messages;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
18 * Constants for sensor messages
20 * @author Stefan Triller - Initial contribution
24 public class Constants {
29 public static final byte MESSAGE_START = (byte) 0xAA;
30 public static final int MESSAGE_START_AS_INT = 170;
31 public static final byte MESSAGE_END = (byte) 0xAB;
33 public static final int REPLY_LENGTH = 10;
35 public static final byte QUERY_ACTION = (byte) 0x00;
36 public static final byte SET_ACTION = (byte) 0x01;