Closed b-morgan closed 7 months ago
Attached is a zip file containing updated sensors.h
and sensors.cpp
. I have added #define
and #ifdef
statements to allow three configurations of sensors, "BMP085 and DHT22" (the original code), "BME280", and none.
I have tested the none case and the BME280 case but have only verified that the original sensors case compiles as I don't have those sensors to test with.
While waiting for my sensor(s) to arrive, I made the edits required to use openweathermap API and my WiFi and attempted to test with just those changes. Instead of the expected results I got an error as shown below. I believe it would be useful to add code that will detect if the sensors exist and do something that doesn't result in an "IntegerDivideByZero".