修改共享订阅组
This commit is contained in:
parent
f4820b809f
commit
b7825ab099
|
|
@ -73,7 +73,7 @@ public class DjiService {
|
||||||
.autoReconnect(mqttProperties.getAutoReconnect())
|
.autoReconnect(mqttProperties.getAutoReconnect())
|
||||||
.cleanSession(mqttProperties.getCleanSession())
|
.cleanSession(mqttProperties.getCleanSession())
|
||||||
.useSharedSubscription(true)
|
.useSharedSubscription(true)
|
||||||
.sharedGroupName("dji-group")
|
.sharedGroupName("dji-server-group")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
// 创建客户端
|
// 创建客户端
|
||||||
|
|
|
||||||
|
|
@ -97,7 +97,7 @@ public class TuohengService {
|
||||||
.autoReconnect(mqttProperties.getAutoReconnect())
|
.autoReconnect(mqttProperties.getAutoReconnect())
|
||||||
.cleanSession(mqttProperties.getCleanSession())
|
.cleanSession(mqttProperties.getCleanSession())
|
||||||
.useSharedSubscription(true)
|
.useSharedSubscription(true)
|
||||||
.sharedGroupName("tuoheng-group")
|
.sharedGroupName("tuoheng-server-group")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
clientManager.initClient(config);
|
clientManager.initClient(config);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue