diff --git a/python/ttn_mqtt-receiver.py b/python/ttn_mqtt-receiver.py index 06bed2d..9186cfc 100644 --- a/python/ttn_mqtt-receiver.py +++ b/python/ttn_mqtt-receiver.py @@ -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)