Skip to content

Commit

Permalink
allow users to select non default port
Browse files Browse the repository at this point in the history
  • Loading branch information
Garfonso authored Jun 6, 2020
1 parent 81c7804 commit e031f85
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pulsecounter/src/wemos/PulseCounter.ino
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ const char* password = "meinWLANPasswort";

// Zugangsdaten zum MQTT-Broker:
const char* mqtt_server = "HostnameMQTT-Broker";
const int mqtt_port = 1883;
const char* mqtt_user = "meinMQTTUserName";
const char* mqtt_password = "meinMQTTPasswort";

Expand Down Expand Up @@ -169,7 +170,7 @@ void setup(){
entprellZeit[i]=1000;
}

client.setServer(mqtt_server, 1883);
client.setServer(mqtt_server, mqtt_port);

server.on("/", handleHttpRequest); // Bechandlung der Ereignissen anschlissen
httpUpdater.setup(&server); // Updater
Expand Down

0 comments on commit e031f85

Please sign in to comment.