From 4ca81dbf4d92f9d9461b41bcf0ce2471ec5bdbcb Mon Sep 17 00:00:00 2001 From: Sucan126 <632190820@qq.com> Date: Wed, 15 Oct 2025 15:37:51 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9B=B4=E6=96=B0MQTT=E4=BB=A3=E7=90=86?= =?UTF-8?q?=E5=9C=B0=E5=9D=80=E5=B9=B6=E4=BF=AE=E5=A4=8D=E6=B3=A8=E9=87=8A?= =?UTF-8?q?=E4=B8=AD=E7=9A=84=E6=8B=BC=E5=86=99=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将MQTT代理地址从192.168.11.24更改为120.24.241.164以连接到新服务器 修复generateRandomClientId函数注释中的多余字符'R' --- include/config.hpp | 2 +- src/custom_robot.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/config.hpp b/include/config.hpp index 3d2b494..219cb40 100644 --- a/include/config.hpp +++ b/include/config.hpp @@ -19,7 +19,7 @@ enum class Gait : int { constexpr std::string_view NETWORK_INTERFACE = "eth0"; // MQTT settings -constexpr std::string_view MQTT_BROKER = "192.168.11.24"; +constexpr std::string_view MQTT_BROKER = "120.24.241.164"; constexpr int MQTT_PORT = 1883; constexpr std::string_view MQTT_CLIENT_ID = "unitree_go2_client"; constexpr std::string_view MQTT_USERNAME = "lzwc"; diff --git a/src/custom_robot.cpp b/src/custom_robot.cpp index d2c8166..3dd7194 100644 --- a/src/custom_robot.cpp +++ b/src/custom_robot.cpp @@ -783,7 +783,7 @@ std::string CustomRobot::generateRandomClientId() const { std::stringstream ss; ss << "go2_client_"; - // 生成8位随机十六进制字符 + // 生成8位随机十六进制字符R for (int i = 0; i < 8; ++i) { ss << std::hex << dis(gen); }