All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.iteaj.iot.client.mqtt.gateway.MqttGatewayHead Maven / Gradle / Ivy

package com.iteaj.iot.client.mqtt.gateway;

import com.iteaj.iot.ProtocolType;
import com.iteaj.iot.client.mqtt.message.MqttMessageHead;
import com.iteaj.iot.utils.UniqueIdGen;

public class MqttGatewayHead extends MqttMessageHead {

    private static final String prefix = "MG:";

    public MqttGatewayHead(byte[] message) {
        super(message);
    }

    public MqttGatewayHead(String equipCode) {
        this(equipCode, UniqueIdGen.messageId(prefix), MqttGatewayProtocolType.Mqtt_Gateway);
    }

    public MqttGatewayHead(String equipCode, String messageId, ProtocolType type) {
        super(equipCode, messageId, type);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy