readAltitude()
Calculates the altitude (in meters) from the specified atmospheric pressure (in hPa), and sea-level pressure (in hPa). bpm.readAltitude(seaLevel)bpm: a variable of type BMP280.
seaLevel: Sea-level pressure in hPa.
float - the altitude value read from the device
Corrections and documentation improvements are accepted via fork & pull-request on GitHub. Suggestions and feature requests are welcome to the Forum.
The text of the Z-Uno reference is based on Arduino Reference and is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.