adafruit / Adafruit_BMP085_Unified

Unified sensor driver for Adafruit's BMP085 & BMP180 breakouts
93 stars 60 forks source link

getSensor() for temperature #30

Open NeonHorizon opened 7 years ago

NeonHorizon commented 7 years ago

I'm new to the sensor libraries so apologies up front if I'm misunderstanding this...

On the DHT sensor library I have:

dht.temperature().getSensor(&sensor);
dht.humidity().getSensor(&sensor);

However in this library there appears to be only:

bmp.getSensor(&sensor);

Since technically the BMP83 is both pressure and temperature should it not have?

bmp.temperature().getSensor(&sensor);
bmp.pressure().getSensor(&sensor);

Or is the DHT library in error for providing this?