Skip to content

Commit

Permalink
Use appname for client_id
Browse files Browse the repository at this point in the history
  • Loading branch information
kylegordon committed Jan 2, 2014
1 parent dfc2126 commit 8a474f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mqtt-republisher.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

APPNAME = "mqtt-republisher"
PRESENCETOPIC = "clients/" + socket.getfqdn() + "/" + APPNAME + "/state"
client_id = "Republisher_%d" % os.getpid()
client_id = APPNAME + "_%d" % os.getpid()
mqttc = mosquitto.Mosquitto(client_id)

LOGFORMAT = '%(asctime)-15s %(message)s'
Expand Down

0 comments on commit 8a474f1

Please sign in to comment.