diff --git a/include/secret.h b/include/secret.h index 0043c73..2b13ed7 100644 --- a/include/secret.h +++ b/include/secret.h @@ -1,5 +1,5 @@ #define MQTT_USER "capteurs" #define MQTT_MDP "Fablab" #define SSID "Thermo-Bibli" -#define MQTT_PWD "12453801" +#define SSID_PWD "12453801" diff --git a/src/main.cpp b/src/main.cpp index c6527dd..bc10c8a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -49,7 +49,7 @@ void reconnect(void) while (!MqttClient.connected()) { Serial.print("."); - if (MqttClient.connect(ESPNAME, MQTT_USER, MQTT_PWD)) + if (MqttClient.connect(ESPNAME, MQTT_USER, MQTT_MDP)) { Serial.println("Connected."); } @@ -134,7 +134,7 @@ void writeMessage(char *txt, float *temp, float *hum, int number) void setup() { Serial.begin(9600); - setupWIFI(SSID, MQTT_PWD); + setupWIFI(SSID, SSID_PWD); setupMQTT(MQTT_ADDRESS, MQTT_PORT); initSensors(sensors, SENSORS_NUMBER); TimeClient.begin();