package cn.iocoder.yudao.module.pms.abc.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@Component
@ConfigurationProperties(prefix = "spring.mqtt")
public class MqttProperties {
    private String host;
    private String username;
    private String password;
    private String clientIdPrefix = "spring-boot-mqtt-";
    private boolean cleanSession = true;
    private int reconnectPeriod = 5000; // 重连延迟（毫秒）
    private int connectTimeout = 10000; // 连接超时（毫秒）
    private int qos = 0; // 默认 QoS 级别
}