[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

View file

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