This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

thingy91 source code that includes AIR Quality measurements from BME680

I have been working with the thingy91 source code from ncs, I can compile and load the sample app successfully. However I did notice that when I compile the code it does not report the Air Quality from the BME680 sensor, while the out-of-the-box binary does.

After looking into the sample app, I notice that there is a function in env_sensors.c that is supposed to get the air quality measurement but it just return -1.

How am I supposed to configure the sample app in order to make it behave as the out of the box sample app?

Is the following configuration related to this?

project->configure nrf connect sdk project ->menu config-> asset tracker-> environment sensors->use bosh BME680 BSEC lib

I have enabled it... but it makes the project invalid...

I also have seen several posts that says that the driver library is: ncs\zephyr\drivers\sensor\bme680

however, adding those files to the asset tracker project cause an error of multiple definitions being found as it seems like the project already have a library added

Any help on how this sample apps are meant to be used as starting point to development is appreciated.

Parents
  • I'm on v1.1-branch.

    The configuration was as it is, with only those attempts described in the post.

    Yes, I was getting only -1 from env_sensors_get_air_quality()

    I saw the note although it was not clear to me from where... so that is how I ended up getting those .c/.h files from the posts... never saw about the link to get the library nor how to add it to my project.

    I just have tested and seems to work fine.

    Thanks!

Reply
  • I'm on v1.1-branch.

    The configuration was as it is, with only those attempts described in the post.

    Yes, I was getting only -1 from env_sensors_get_air_quality()

    I saw the note although it was not clear to me from where... so that is how I ended up getting those .c/.h files from the posts... never saw about the link to get the library nor how to add it to my project.

    I just have tested and seems to work fine.

    Thanks!

Children
Related