package com.yuchen.saas.park.service.iot;

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

@Data
@Configuration
public class IotMqttConfig {
    @Value("${iot.mqtt.uri}")
    private String uri;

    @Value("${iot.mqtt.access-key}")
    private String accessKey;

    @Value("${iot.mqtt.access-secret}")
    private String accessSecret;

    @Value("${iot.mqtt.shareGroupName}")
    private String shareGroupName;

    @Override
    public String toString() {
        return "IotMqttConfig{" +
                "uri='" + uri + '\'' +
                ", accessKey='" + accessKey + '\'' +
                ", accessSecret='" + accessSecret + '\'' +
                ", shareGroupName='" + shareGroupName + '\'' +
                '}';
    }
}