passwd variable names update

This commit is contained in:
pgp 2021-11-29 15:58:48 +01:00
parent 9f2baac7fa
commit a0f058150e
2 changed files with 3 additions and 3 deletions

View file

@ -1,5 +1,5 @@
#define MQTT_USER "capteurs" #define MQTT_USER "capteurs"
#define MQTT_MDP "Fablab" #define MQTT_MDP "Fablab"
#define SSID "Thermo-Bibli" #define SSID "Thermo-Bibli"
#define MQTT_PWD "12453801" #define SSID_PWD "12453801"

View file

@ -49,7 +49,7 @@ void reconnect(void)
while (!MqttClient.connected()) while (!MqttClient.connected())
{ {
Serial.print("."); Serial.print(".");
if (MqttClient.connect(ESPNAME, MQTT_USER, MQTT_PWD)) if (MqttClient.connect(ESPNAME, MQTT_USER, MQTT_MDP))
{ {
Serial.println("Connected."); Serial.println("Connected.");
} }
@ -134,7 +134,7 @@ void writeMessage(char *txt, float *temp, float *hum, int number)
void setup() void setup()
{ {
Serial.begin(9600); Serial.begin(9600);
setupWIFI(SSID, MQTT_PWD); setupWIFI(SSID, SSID_PWD);
setupMQTT(MQTT_ADDRESS, MQTT_PORT); setupMQTT(MQTT_ADDRESS, MQTT_PORT);
initSensors(sensors, SENSORS_NUMBER); initSensors(sensors, SENSORS_NUMBER);
TimeClient.begin(); TimeClient.begin();