Harmonised mqtt_device

This commit is contained in:
Nis Wechselberg 2017-09-17 17:50:44 +02:00
parent 7f35855148
commit 1ab323025f
5 changed files with 5 additions and 5 deletions

View file

@ -6,7 +6,7 @@ const char* password = "";
const char* mqtt_server = "broker.mqtt-dashboard.com"; const char* mqtt_server = "broker.mqtt-dashboard.com";
// Device identification // Device identification
const char* mqtt_device_name = "esp8266client" const char* mqtt_device = "esp8266client"
// MQTT topics // MQTT topics
const char* mqtt_topic_power = "esp8266client/power"; const char* mqtt_topic_power = "esp8266client/power";

View file

@ -6,7 +6,7 @@ const char* password = "";
const char* mqtt_server = "broker.mqtt-dashboard.com"; const char* mqtt_server = "broker.mqtt-dashboard.com";
// Device identification // Device identification
const char* mqtt_device_name = "esp8266benq" const char* mqtt_device = "esp8266benq"
// MQTT topics // MQTT topics
const char* mqtt_topic_power = "benq/power"; const char* mqtt_topic_power = "benq/power";

View file

@ -226,7 +226,7 @@ void reconnect() {
Serial.print("Attempting MQTT connection..."); Serial.print("Attempting MQTT connection...");
} }
// Attempt to connect // Attempt to connect
if (client.connect(mqtt_device_name)) { if (client.connect(mqtt_device)) {
if (DEBUGTOSERIAL) { if (DEBUGTOSERIAL) {
Serial.println("connected"); Serial.println("connected");
} }

View file

@ -6,7 +6,7 @@ const char* password = "";
const char* mqtt_server = "broker.mqtt-dashboard.com"; const char* mqtt_server = "broker.mqtt-dashboard.com";
// Device identification // Device identification
const char* mqtt_device_name = "livingroom/teufelSub"; const char* mqtt_device = "livingroom/teufelSub";
// MQTT topics // MQTT topics
const char* mqtt_topic_power = "livingroom/teufelSub/power"; const char* mqtt_topic_power = "livingroom/teufelSub/power";

View file

@ -156,7 +156,7 @@ void reconnect() {
Serial.print("Attempting MQTT connection..."); Serial.print("Attempting MQTT connection...");
} }
// Attempt to connect // Attempt to connect
if (client.connect(mqtt_device_name)) { if (client.connect(mqtt_device)) {
if (DEBUGTOSERIAL) { if (DEBUGTOSERIAL) {
Serial.println("connected"); Serial.println("connected");
} }