Skip to content

BMP280 and MCP9808 sensors

Compare
Choose a tag to compare
@dionisiydk dionisiydk released this 14 Feb 16:15
· 117 commits to master since this release
07c5fb1

Temperature sensors are implemented as separate classes:

  • PotBMP280Device
  • PotMCP9808Device

They incapsulate required initialisation logic and actual data reading:

  • readTemperature (returns number in Celsius)

BMP280 is more advanced sensor. It also measures pressure and humidity. To get all parameters use #readParameters message which returns three items array (Celsius, hPa, humidity percents)