Using the new Arduino IDE for ESP8266 and found bugs, report them here

Moderator: igrr

User avatar
By picstart
#31621 I have had this error in commercial vendors code for DHT11.......I pays to rewrite this code ( approx 100 lines) since it may have been written to advance sales of hardware boards that span several sensors. If you are just using the esp8266 and not a commercial arduino piggy back board the vendor may at any time make a change that cripples the stand alone generic esp8266 approach.
There is nothing in a DHT11 or DHt22 that even remotely requires square roots and let alone a specific ieee notational format.
Anyway simple fixed point math for conversion to deg f is all the math that is needed.
User avatar
By DAFlippers
#31625 Perhaps I am missing the point. I believed this forum was to report bugs in the implementation of ESP8266 in the Arduino environment. If that is the case then the report is that importing the standard DHT Arduino library exposes a broken sqrt function.

If I am incorrect in my assumption then it is not a problem to rewrite the DHT library - specifically the adjustment to the Heat Index as detailed in http://www.wpc.ncep.noaa.gov/html/heati ... tion.shtml - should you require Heat Index or simply drop the HI calculation should you not.

So is the purpose of this forum to report bugs in the ESP Arduino implementation so the implementation can be fixed or to indicate to other users that they need to rewrite a standard library?

David