diff --git a/.vscode/extensions.json b/.vscode/extensions.json index 0f0d740..080e70d 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -1,7 +1,10 @@ -{ - // See http://go.microsoft.com/fwlink/?LinkId=827846 - // for the documentation about the extensions.json format - "recommendations": [ - "platformio.platformio-ide" - ] -} +{ + // See http://go.microsoft.com/fwlink/?LinkId=827846 + // for the documentation about the extensions.json format + "recommendations": [ + "platformio.platformio-ide" + ], + "unwantedRecommendations": [ + "ms-vscode.cpptools-extension-pack" + ] +} diff --git a/include/secret.h b/include/secret.h index 2b13ed7..b713a84 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 SSID_PWD "12453801" +#define SSID_PWD "17413278" diff --git a/src/main.cpp b/src/main.cpp index 4dfd3b0..c2e3c4f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -5,7 +5,7 @@ using namespace std; -DHT sensors[SENSORS_NUMBER] = {DHT(23, DHT22), DHT(22, DHT22), DHT(21, DHT22), DHT(17, DHT22), DHT(2, DHT22)}; +DHT sensors[SENSORS_NUMBER] = {DHT(4, DHT22), DHT(5, DHT22), DHT(18, DHT22), DHT(19, DHT22), DHT(21, DHT22)}; float temp[SENSORS_NUMBER]; float hum[SENSORS_NUMBER]; @@ -139,9 +139,10 @@ void setup() setupMQTT(MQTT_ADDRESS, MQTT_PORT); initSensors(sensors, SENSORS_NUMBER); TimeClient.begin(); + delay(2000); } -//-------------------- Boucle pricipale --------------------// +//-------------------- Boucle principale --------------------// void loop() {