mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-25 01:42:15 +00:00
CSE to cleanup mqtt addr setting
This commit is contained in:
parent
2fe11d4fe8
commit
72807f0fa0
@ -74,11 +74,9 @@ void MQTT::reconnect()
|
|||||||
String port = server.substring(delimIndex+1, server.length());
|
String port = server.substring(delimIndex+1, server.length());
|
||||||
server[delimIndex] = 0;
|
server[delimIndex] = 0;
|
||||||
serverPort = port.toInt();
|
serverPort = port.toInt();
|
||||||
pubSub.setServer(server.c_str(), serverPort);
|
serverAddr = server.c_str();
|
||||||
}
|
|
||||||
else {
|
|
||||||
pubSub.setServer(serverAddr, serverPort);
|
|
||||||
}
|
}
|
||||||
|
pubSub.setServer(serverAddr, serverPort);
|
||||||
|
|
||||||
DEBUG_MSG("Connecting to MQTT server %s, port: %d\n", server.c_str(), serverPort);
|
DEBUG_MSG("Connecting to MQTT server %s, port: %d\n", server.c_str(), serverPort);
|
||||||
auto myStatus = (statusTopic + owner.id);
|
auto myStatus = (statusTopic + owner.id);
|
||||||
|
Loading…
Reference in New Issue
Block a user