package cn.reghao.autodop.common.mqtt;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author reghao
 * @date 2019-08-27 00:17:55
 */
@Data
@Component
@ConfigurationProperties(prefix = "mosquitto")
public class MosquittoProperties {
    @Value("${mosquitto.broker}")
    private String broker;
    @Value("${mosquitto.username}")
    private String username;
    @Value("${mosquitto.password}")
    private String password;
    @Value("${mosquitto.clientId}")
    private String clientId;
}
