Added Keepalive, MQTT user and MQTT password options

This commit is contained in:
2018-09-02 23:50:06 -07:00
parent 04a0b5b1be
commit 9c2f7ebe90
2 changed files with 20 additions and 5 deletions

View File

@@ -5,20 +5,20 @@ import os
# for regular and 8883 for SSL.
#
#===========================================================================
host = os.getenv('MQTT_BROKER_IP', '192.168.1.18')
port = os.getenv('MQTT_BROKER_PORT', 31333)
host = os.getenv('MQTT_BROKER_IP', '192.168.1.20')
port = os.getenv('MQTT_BROKER_PORT', 1883)
# Keep alive time in seconds. Client sends a ping if no other message
# is sent in this interval.
keepAlive = 60
keepAlive = os.getenv('KEEPALIVE', 60)
#===========================================================================
#
# User name and password (strings) for broker log in.
#
#===========================================================================
user = None
password = None
user = os.getenv('MQTT_USER', None)
password = os.getenv('MQTT_PASS', None)
#===========================================================================
#