Skip to content

Commit

Permalink
✨ 完善注释,避免误用。
Browse files Browse the repository at this point in the history
  • Loading branch information
ChunMengLu committed Jun 22, 2024
1 parent 534e9f4 commit 49329cc
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 49329cc

Please sign in to comment.