Hi, in this project, I ported the BME68x-Sensor-API driver and Bosch-BSEC2-Library into Zephyr https://github.com/HomeSmartMesh/sdk-hsm-thingy53 In the samples of project I shared, is target is not the NRF9160 but the Thingy53, but as it is a BME688 integration into Zephyr, porting it to your target should be quite easy as the provided driver and library are outside the samples and can be added with config flags.
... View more
Hi, I have faced the same issue and created a project where I integrated the BME68x-Sensor-API and the Bosch-BSEC2-Library into Zephyr-RTOS and have it working for the Thingy53 Hardware. Here the proejct github repo : https://github.com/HomeSmartMesh/sdk-hsm-thingy53 Zephyr actually can be configured to compile c++ with the flag `CONFIG_CPLUSPLUS` and the integration of .a c++ library although tricky is totally possible with the west CMake environment. I also updated the referenced forum thread from Nordic. The integration goes in two steps, first you need the driver and then the library on top, here some details BME688 Zephyr Driver : in drivers/sensor/bme688 BME68x-Sensor-API vendor driver integration https://github.com/boschsensortec/BME68x-Sensor-API Using Zephyr's Sensor API in C language for usage in BME688 simple forced mode Driver extension functions to use BME688 in Parallel mode and get all x10 gas measures BME688 Server : in subsys/bme688_server C++ wrapper to configure the BME688 usage in json structure (temperatures profile and durations) handler delivers the sensor results in a json structure (temperature, humidity, pressure, gas-0..gas-9) Bosch-BSEC2-Library .a vendor's binary integration for IAQ (Indoor Air Quality) measurements https://github.com/boschsensortec/Bosch-BSEC2-Library To make it easy to test, you can try samples with incremental complexity 05_bme688, 06_bme688_parallel, 07_bme688_parallel_cpp, 08_bme688_bsec2 and 20_sensors_server. Here an overview about the integration I hope this helps, if you're still interested in the steps how this was made, I can explain, feel free to ask.
... View more