[MQTT] replace user/password name after enhanced ttn-receiver.py

This commit is contained in:
dongwoo.koh 2019-02-11 13:04:11 +00:00
parent 58acd06765
commit f7724159f8
1 changed files with 2 additions and 2 deletions

View File

@ -62,8 +62,8 @@ if __name__ == '__main__':
mqttc.on_disconnect=on_disconnect
log.debug("Connecting to ttn")
username="" #Put your username
password="" #Put your password
username=os.environ['ttn_user']
password=os.environ['ttn_password']
mqttc.username_pw_set(username, password)
mqttc.connect("eu.thethings.network",1883,10)