Harmonised mqtt_device
This commit is contained in:
parent
7f35855148
commit
1ab323025f
5 changed files with 5 additions and 5 deletions
|
@ -6,7 +6,7 @@ const char* password = "";
|
|||
const char* mqtt_server = "broker.mqtt-dashboard.com";
|
||||
|
||||
// Device identification
|
||||
const char* mqtt_device_name = "esp8266client"
|
||||
const char* mqtt_device = "esp8266client"
|
||||
|
||||
// MQTT topics
|
||||
const char* mqtt_topic_power = "esp8266client/power";
|
||||
|
|
|
@ -6,7 +6,7 @@ const char* password = "";
|
|||
const char* mqtt_server = "broker.mqtt-dashboard.com";
|
||||
|
||||
// Device identification
|
||||
const char* mqtt_device_name = "esp8266benq"
|
||||
const char* mqtt_device = "esp8266benq"
|
||||
|
||||
// MQTT topics
|
||||
const char* mqtt_topic_power = "benq/power";
|
|
@ -226,7 +226,7 @@ void reconnect() {
|
|||
Serial.print("Attempting MQTT connection...");
|
||||
}
|
||||
// Attempt to connect
|
||||
if (client.connect(mqtt_device_name)) {
|
||||
if (client.connect(mqtt_device)) {
|
||||
if (DEBUGTOSERIAL) {
|
||||
Serial.println("connected");
|
||||
}
|
||||
|
|
|
@ -6,7 +6,7 @@ const char* password = "";
|
|||
const char* mqtt_server = "broker.mqtt-dashboard.com";
|
||||
|
||||
// Device identification
|
||||
const char* mqtt_device_name = "livingroom/teufelSub";
|
||||
const char* mqtt_device = "livingroom/teufelSub";
|
||||
|
||||
// MQTT topics
|
||||
const char* mqtt_topic_power = "livingroom/teufelSub/power";
|
||||
|
|
|
@ -156,7 +156,7 @@ void reconnect() {
|
|||
Serial.print("Attempting MQTT connection...");
|
||||
}
|
||||
// Attempt to connect
|
||||
if (client.connect(mqtt_device_name)) {
|
||||
if (client.connect(mqtt_device)) {
|
||||
if (DEBUGTOSERIAL) {
|
||||
Serial.println("connected");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue