fix: 更新MQTT代理地址并修复注释中的拼写错误

将MQTT代理地址从192.168.11.24更改为120.24.241.164以连接到新服务器
修复generateRandomClientId函数注释中的多余字符'R'
This commit is contained in:
2025-10-15 15:37:51 +08:00
parent 6e669bb027
commit 4ca81dbf4d
2 changed files with 2 additions and 2 deletions

View File

@@ -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";

View File

@@ -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);
}