package com.gyee.dataadapter.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Data
@Configuration
@ConfigurationProperties(MqttConfig.PREFIX)
public class MqttConfig {
    public static final String PREFIX = "publish.mqtt";
    /**
     * 服务端地址
     */
    private String host;

    /**
     * 客户端id
     */
    private String clientid;

    /**
     * 服务端用户名
     */
    private String username;

    /**
     * 服务端密码
     */
    private String password;

    /**
     * 是否清理session
     */
    private boolean cleansession;

    /**
     * 心跳时间
     */
    private int keepalive;

    /**
     * 连接超时时间
     */
    private int connectionTimeout;

}
