Customer:
I’m getting compilation errors with this Blynk DHT11 code.
First error:
Arduino: 1.8.5 (Windows 10), Board: “Generic ESP8266 Module, 80 MHz, nodemcu, 26 MHz, 40MHz, QIO, 4M (1M SPIFFS), v2 Prebuilt (MSS=536), Disabled, None, 115200”
BlynkDHT11:17: error: stray ‘\357’ in program
if (isnan(h)|| isnan(t)){
^
BlynkDHT11:17: error: stray ‘\275’ in program
BlynkDHT11:17: error: stray ‘\234’ in program
BlynkDHT11:17: error: stray ‘\357’ in program
BlynkDHT11:17: error: stray ‘\275’ in program
BlynkDHT11:17: error: stray ‘\234’ in program
BlynkDHT11:18: error: missing terminating " character
Serial.println("Failed to readd from DHT sensor!);
^
BlynkDHT11:11: error: ‘DHTYPE’ was not declared in this scope
DHT dht (DHTPIN, DHTYPE);
^
C:\Users[user]\Desktop\BlynkDHT11\BlynkDHT11.ino: In function ‘void sendSensor()’:
BlynkDHT11:17: error: expected ‘)’ before ‘isnan’
if (isnan(h)|| isnan(t)){
^
BlynkDHT11:19: error: expected primary-expression before ‘return’
return;
^
exit status 1
stray ‘\357’ in program
Second error:
Arduino: 1.8.5 (Windows 10), Board: “Generic ESP8266 Module, 80 MHz, nodemcu, 26 MHz, 40MHz, QIO, 4M (1M SPIFFS), v2 Prebuilt (MSS=536), Disabled, None, 115200”
In file included from C:\Users[user]\Documents\Arduino\libraries\DHT-sensor-library-master\DHT_U.cpp:22:0:
C:\Users[user]\Documents\Arduino\libraries\DHT-sensor-library-master\DHT_U.h:25:29: fatal error: Adafruit_Sensor.h: No such file or directory
#include
^
compilation terminated.
exit status 1
Error compiling for board Generic ESP8266 Module.
Original message (Serbian)
Zanemari prethodnu poruku, resio sam, sad sam dobio ovu error message kod kompajliranja
Arduino: 1.8.5 (Windows 10), Board: “Generic ESP8266 Module, 80 MHz, nodemcu, 26 MHz, 40MHz, QIO, 4M (1M SPIFFS), v2 Prebuilt (MSS=536), Disabled, None, 115200”
BlynkDHT11:17: error: stray ‘\357’ in program
if (isnan(h)|| isnan(t)){
^
BlynkDHT11:17: error: stray ‘\275’ in program
BlynkDHT11:17: error: stray ‘\234’ in program
BlynkDHT11:17: error: stray ‘\357’ in program
BlynkDHT11:17: error: stray ‘\275’ in program
BlynkDHT11:17: error: stray ‘\234’ in program
BlynkDHT11:18: error: missing terminating " character
Serial.println("Failed to readd from DHT sensor!);
^
BlynkDHT11:11: error: ‘DHTYPE’ was not declared in this scope
DHT dht (DHTPIN, DHTYPE);
^
C:\Users[user]\Desktop\BlynkDHT11\BlynkDHT11.ino: In function ‘void sendSensor()’:
BlynkDHT11:17: error: expected ‘)’ before ‘isnan’
if (isnan(h)|| isnan(t)){
^
BlynkDHT11:19: error: expected primary-expression before ‘return’
return;
^
exit status 1
stray ‘\357’ in program
This report would have more information with
“Show verbose output during compilation”
option enabled in File → Preferences.
Davide,
Dobio sam ovu gresku
Arduino: 1.8.5 (Windows 10), Board: “Generic ESP8266 Module, 80 MHz, nodemcu, 26 MHz, 40MHz, QIO, 4M (1M SPIFFS), v2 Prebuilt (MSS=536), Disabled, None, 115200”
In file included from C:\Users[user]\Documents\Arduino\libraries\DHT-sensor-library-master\DHT_U.cpp:22:0:
C:\Users[user]\Documents\Arduino\libraries\DHT-sensor-library-master\DHT_U.h:25:29: fatal error: Adafruit_Sensor.h: No such file or directory
#include
^
compilation terminated.
exit status 1
Error compiling for board Generic ESP8266 Module.
This report would have more information with
“Show verbose output during compilation”
option enabled in File → Preferences.