What's the use in passing an argument if you don't use it?

This commit is contained in:
Chris Giacofei 2022-01-11 10:18:28 -05:00
parent 4d54f17b9c
commit c0c070defc

View File

@ -45,7 +45,7 @@ void SetupMQTT(String broker) {
// Note: Local domain names (e.g. "Computer.local" on OSX) are not supported
// by Arduino. You need to set the IP address directly.
Serial.println("Setup MQTT client.");
mqtt_client.begin("192.168.1.198", net);
mqtt_client.begin(broker, net);
mqtt_client.onMessage(MessageReceived);
ConnectMQTT();