Permalink
Browse files

The port is an int, and we also need to get the topic out the config …

…file
  • Loading branch information...
1 parent d4217db commit 8f82b3d1db94983c3b78f8c126ec61cc25c79395 @kylegordon committed Sep 28, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 mqtt-republisher.py
View
3 mqtt-republisher.py
@@ -24,7 +24,8 @@
LOGFILE = config.get("global", "logfile")
MAPFILE = config.get("global", "mapfile")
MQTT_HOST = config.get("global", "mqtt_host")
-MQTT_PORT = config.get("global", "mqtt_port")
+MQTT_PORT = config.getint("global", "mqtt_port")
+MQTT_TOPIC = config.get("global", "mqtt_topic")
client_id = "Republisher_%d" % os.getpid()
mqttc = mosquitto.Mosquitto(client_id)

0 comments on commit 8f82b3d

Please sign in to comment.