package com.zbf.web.mqtt;

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

@Data
@Component
@ConfigurationProperties(prefix = "mqtt")
public class MqttProperties {
    private String username;
    private String password;
    private String hostUrl;
    private String clientId;
    private String[] topics;  // 订阅的主题数组
    private Integer timeout;
    private Integer keepalive;
    private Integer qos = 1;
}
