Open Dancopy opened 5 years ago
Might be because no address is specified. You could think because it's a shield specified for WEMOS that this would be set. Can't find what address to use.
DHT12 dht12 = DHT12(what to use here);
@Dancopy looks like its only 'Verify' issue. I've run the example code on the actual device and getting the readout.
@wemos please fix the plugin, like my code to be pretty and not unnecessary errors when checking the code ;)
fbacker, thank you; already fixed; was the Wire type library. I found another one that was for esp8266.
Dancopy, I have the same problem, as you solved it?
@erpepe2004 It was the Wire type library for esp8266; I don't remember which one. Find another Wire library on Google and replace it in your Arduino library folder.
In the example "simple" the library is presenting this:
Arduino: 1.8.5 (Windows 10), Placa:"NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, 4M (1M SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 115200"
C:\Users\Daniel\Documents\Arduino\libraries\WEMOS_DHT12_Arduino_Library-master\src\WEMOS_DHT12.cpp: In constructor 'DHT12::DHT12(uint8_t)':
C:\Users\Daniel\Documents\Arduino\libraries\WEMOS_DHT12_Arduino_Library-master\src\WEMOS_DHT12.cpp:8:2: error: 'Wire' was not declared in this scope
Wire.begin(); ^ C:\Users\Daniel\Documents\Arduino\libraries\WEMOS_DHT12_Arduino_Library-master\src\WEMOS_DHT12.cpp: In member function 'byte DHT12::get()':
C:\Users\Daniel\Documents\Arduino\libraries\WEMOS_DHT12_Arduino_Library-master\src\WEMOS_DHT12.cpp:18:2: error: 'Wire' was not declared in this scope
Wire.beginTransmission(_address); ^ exit status 1 Compiling error for NodeMCU 1.0 (ESP-12E Module)