[MQTT] replace user/password name after enhanced ttn-receiver.py
This commit is contained in:
parent
58acd06765
commit
f7724159f8
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue