Skip to content
Snippets Groups Projects
Commit 50c09cf0 authored by schneider's avatar schneider
Browse files

change(bsec): Documentation

parent 804d3486
Branches
Tags
1 merge request!380BSEC support
Pipeline #5042 passed
......@@ -46,6 +46,14 @@ library will be activated which offers the following extra functionality:
time.sleep(1)
You can use the return type of :py:meth:`~bme680.Bme680.get_data` to decide
if you want to use/display the additonal fields returned if BSEC is enabled.
.. code-block:: python
if isinstance(d, bme680.BSECData):
print("Air quality: {:7d}".format(d.iaq))
Sensor Class
------------
......
......@@ -78,6 +78,9 @@ class Bme680:
- ``iaq_accuracy``: Accuracy of indoor air quality
- ``eco2``: Equivalent CO2 content in *ppm*
If BSEC is enabled an instance of `bme680.BSECData` will be returned.
If BSEC is not enabled an instance of `bme680.Bme680Data` will be returned.
**Example**:
.. code-block:: python
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment