Controle t/h avec l'app blynk et ESP8266 MOD-12f

Bonjour,

Je souhaite avoir la température et l'humidité (DHT11) d'inscrit sur l'application Blynk.
Je suis les divers tuto rencontrés sur le net mais je n'y arrive tjrs pas.
L'application n'arrive pas à se connecter sur le nodMCU.
Merci de votre aide
Voici le code :

/* Comment this out to disable prints and save space */
#define BLYNK_PRINT Serial

#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
#include <DHT.h>

// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "x1XCsFDnlzRPE2egZFVHErXc2569KoH3";

// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "F8**";
char pass[] = "9EF5AAA952CA3D****";

#define DHTPIN 2 // What digital pin we're connected to

// Uncomment whatever type you're using!
#define DHTTYPE DHT11 // DHT 11
//#define DHTTYPE DHT22 // DHT 22, AM2302, AM2321
//#define DHTTYPE DHT21 // DHT 21, AM2301

DHT dht(DHTPIN, DHTTYPE);
BlynkTimer timer;

// This function sends Arduino's up time every second to Virtual Pin (5).
// In the app, Widget's reading frequency should be set to PUSH. This means
// that you define how often to send data to Blynk App.
void sendSensor()
{
float h = dht.readHumidity();
float t = dht.readTemperature(); // or dht.readTemperature(true) for Fahrenheit

if (isnan(h) || isnan(t)) {
Serial.println("Failed to read from DHT sensor!");
return;
}
// You can send any value at any time.
// Please don't send more that 10 values per second.
Blynk.virtualWrite(V5, h);
Blynk.virtualWrite(V6, t);
}

void setup()
{
// Debug console
Serial.begin(9600);

Blynk.begin(auth, ssid, pass);
// You can also specify server:
//Blynk.begin(auth, ssid, pass, "blynk-cloud.com", 80);
//Blynk.begin(auth, ssid, pass, IPAddress(192,168,1,100), 8080);

dht.begin();

// Setup a function to be called every second
timer.setInterval(1000L, sendSensor);
}

void loop()
{
Blynk.run();
timer.run();
}

voici c qui est inscrit après transfert :

Executable segment sizes:

IROM : 249568 - code in flash (default or ICACHE_FLASH_ATTR)

IRAM : 28256 / 32768 - code in IRAM (ICACHE_RAM_ATTR, ISRs...)

DATA : 1320 ) - initialized variables (global, static) in RAM/HEAP

RODATA : 2260 ) / 81920 - constants (global, static) in RAM/HEAP

BSS : 26136 ) - zeroed variables (global, static) in RAM/HEAP

Le croquis utilise 281404 octets (26%) de l'espace de stockage de programmes. Le maximum est de 1044464 octets.
Les variables globales utilisent 29716 octets (36%) de mémoire dynamique, ce qui laisse 52204 octets pour les variables locales. Le maximum est de 81920 octets.
esptool.py v2.8
Serial port COM6
Connecting....
Chip is ESP8266EX
Features: WiFi
Crystal is 26MHz
MAC: 2c:f4:32:3d:04:3f
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Auto-detected Flash size: 4MB
Compressed 285552 bytes to 208966...

Writing at 0x00000000... (7 %)
Writing at 0x00004000... (15 %)
Writing at 0x00008000... (23 %)
Writing at 0x0000c000... (30 %)
Writing at 0x00010000... (38 %)
Writing at 0x00014000... (46 %)
Writing at 0x00018000... (53 %)
Writing at 0x0001c000... (61 %)
Writing at 0x00020000... (69 %)
Writing at 0x00024000... (76 %)
Writing at 0x00028000... (84 %)
Writing at 0x0002c000... (92 %)
Writing at 0x00030000... (100 %)
Wrote 285552 bytes (208966 compressed) at 0x00000000 in 18.5 seconds (effective 123.2 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...

ne partagez pas votre token !!

sinon merci de lire comment utiliser le forum et poster une question et du code.