Commit c8919485 authored by Olivier Kaufmann's avatar Olivier Kaufmann
Browse files

Updates config.py

Showing with 3 additions and 2 deletions
+3 -2
......@@ -2,6 +2,7 @@ import logging
from paho.mqtt.client import MQTTv31
mqtt_broker = 'localhost'
# OhmPi configuration
OHMPI_CONFIG = {
'id': '0001', # Unique identifier of the OhmPi board (string)
......@@ -56,7 +57,7 @@ SOH_LOGGING_CONFIG = {
# MQTT logging configuration parameters
MQTT_LOGGING_CONFIG = {
'hostname':'ohmpy.umons.ac.be',
'hostname': mqtt_broker,
'port': 1883,
'qos': 2,
'retain': False,
......@@ -74,7 +75,7 @@ MQTT_LOGGING_CONFIG = {
# MQTT control configuration parameters
MQTT_CONTROL_CONFIG = {
'hostname': 'ohmpy.umons.ac.be',
'hostname': mqtt_broker,
'port': 1883,
'qos': 2,
'retain': False,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment