Skip to content

Commit

Permalink
Merge branch 'master' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
ChunMengLu committed Jun 22, 2024
2 parents 63f3301 + 49329cc commit 19b0275
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public void onConnected(MqttConnectedEvent event) {
@EventListener
public void onDisconnect(MqttDisconnectEvent event) {
logger.info("MqttDisconnectEvent:{}", event);
// 在断线时更新 clientId、username、password
// 在断线时更新 clientId、username、password,只能改这 3 个,不可调用其他方法。
mqttClientCreator.clientId("newClient" + System.currentTimeMillis())
.username("newUserName")
.password("newPassword");
Expand Down

0 comments on commit 19b0275

Please sign in to comment.