17 lines
327 B
Python
17 lines
327 B
Python
|
|
|
|
# timeout for connecting to the WiFi
|
|
NETWORK_TIMEOUT = 5
|
|
|
|
# address of MQTT broker
|
|
MQTT_BROKER = '192.168.1.1'
|
|
|
|
# basic prefix used for all topics
|
|
MQTT_PREFIX = 'home'
|
|
|
|
# format for device topics
|
|
DEVICE_TOPIC_FORMAT = 'devices/{ip}'
|
|
|
|
# log topic (None to disable logging via MQTT). relative to device topic
|
|
LOG_TOPIC = 'log'
|