[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
|
||||
|
||||
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)
|
||||
|
|
Loading…
Reference in a new issue