iotpipe / esp8266-dht22

A DHT22 library for the ESP8266
MIT License
7 stars 2 forks source link

BUG in read(): 'ets_delay_us' was not declared in this scope #5

Closed Anton-V-K closed 7 years ago

Anton-V-K commented 7 years ago

The error is detected when compiling dht22.c with Arduino IDE 1.6.13 for ESP8266 (WeMos D1 R2 & mini):

sketch\dht22.c: In function 'bool read()':

dht22.c:80: error: 'ets_delay_us' was not declared in this scope

  os_delay_us(250*1000);

                      ^
iotpipe commented 7 years ago

Hey Anton,

This library is meanted to be compiled against the manufacturers C SDK, not the Arduino for ESP8266 library.