package cn.pluss.platform.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * @author admin
 * @desc 阿里云MQTT配置参数类
 *
 */
@Data
@Component("mqttConfig")
@PropertySource("classpath:config/application-common.yml")
public class MqttConfig {

    /**
     * 节点
     */
    @Value("${mqtt.region-id}")
    private String regionId;

    /**
     * key
     */
    @Value("${mqtt.keyid}")
    private String keyId;

    /**
     * secret
     */
    @Value("${mqtt.keysecret}")
    private String keySecret;

    /**
     * 实例ID
     */
    @Value("${mqtt.instance-id}")
    private String instanceId;

    /**
     * topic
     */
    @Value("${mqtt.topic}")
    private String topic;

    /**
     * groupId
     */
    @Value("${mqtt.groupid}")
    private String groupId;

}
