Added MQTT Broker IP and PORT ENV options (-e MQTT_BROKER_IP and MQTT_BROKER_PORT)
This commit is contained in:
@@ -1,11 +1,12 @@
|
|||||||
|
import os
|
||||||
#===========================================================================
|
#===========================================================================
|
||||||
#
|
#
|
||||||
# MQTT message broker location. Default broker location is port 1883
|
# MQTT message broker location. Default broker location is port 1883
|
||||||
# for regular and 8883 for SSL.
|
# for regular and 8883 for SSL.
|
||||||
#
|
#
|
||||||
#===========================================================================
|
#===========================================================================
|
||||||
host = '192.168.1.20'
|
host = os.getenv('MQTT_BROKER_IP', '192.168.1.18')
|
||||||
port = 31333
|
port = os.getenv('MQTT_BROKER_PORT', 31333)
|
||||||
|
|
||||||
# Keep alive time in seconds. Client sends a ping if no other message
|
# Keep alive time in seconds. Client sends a ping if no other message
|
||||||
# is sent in this interval.
|
# is sent in this interval.
|
||||||
|
|||||||
Reference in New Issue
Block a user