mirror of
https://github.com/meshtastic/firmware.git
synced 2025-02-02 18:59:56 +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());
|
||||
server[delimIndex] = 0;
|
||||
serverPort = port.toInt();
|
||||
pubSub.setServer(server.c_str(), serverPort);
|
||||
}
|
||||
else {
|
||||
pubSub.setServer(serverAddr, serverPort);
|
||||
serverAddr = server.c_str();
|
||||
}
|
||||
pubSub.setServer(serverAddr, serverPort);
|
||||
|
||||
DEBUG_MSG("Connecting to MQTT server %s, port: %d\n", server.c_str(), serverPort);
|
||||
auto myStatus = (statusTopic + owner.id);
|
||||
|
Loading…
Reference in New Issue
Block a user