修改clientId动态生成
This commit is contained in:
parent
3d4d995d05
commit
1a241f809b
|
|
@ -4,6 +4,8 @@ import lombok.Data;
|
||||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* DJI MQTT配置属性
|
* DJI MQTT配置属性
|
||||||
*
|
*
|
||||||
|
|
@ -32,7 +34,7 @@ public class TuohengMqttProperties {
|
||||||
/**
|
/**
|
||||||
* 客户端ID
|
* 客户端ID
|
||||||
*/
|
*/
|
||||||
private String clientId = "ThingsBoard_gateway";
|
private String clientId = "ThingsBoard_gateway_" + UUID.randomUUID().toString().substring(0, 8);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 用户名
|
* 用户名
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue