I am using BME688 and BSEC2 with nrf52832 (nrf sdk 17.0.2). I am trying to implement the generic/basic example.
The function call to "bsec_sensor_control()" in the run() function updates the next_call member of bsec_bme_settings_t struct but never updates the op_mode (Hence, the sensor is always in sleep mode). Subsequently, I'm unable to get any data output from the sensor.
I have attached my code below. Please suggest how can I correct this error.
You could download BSEC 188.8.131.52 package from here: https://www.bosch-sensortec.com/software-tools/software/bme688-software/
Run "BSEC_184.108.40.206_Generic_Release_04302021\examples\bsec2\examples\basic_config_state" reference code, and see BSEC output values.
I've tried the arduino examples and they work fine. I've converted the C++ code to C for my application and cant understand why bsec_sensor_control() wont update the operation mode but does update the 'next_call' member of the bsec_bme_settings_t struct.
I've uploaded my code in my question. Can you kindly suggest what I might be doing wrong there?
We are not sure whether your converted C code is correct. Can you send out the complete code for us to check?