Hello. I have already implemented the latest BME68x driver for the BME680. Now I wish to add on the BSEC library. Since I have already obtained raw data using the BME68x functions, do I still need to call bsec_sensor_control() in the main processing loop or can I simply just move on to use bsec_do_steps()?
To run BSEC software, you need to run the code in bsec_iot_loop() function. bme680_bsec_process_data() already contains the call of bsec_do_steps(). If your software platform supports multitask, you can put bsec_iot_loop() into a task to execute.
My code that reads the data from the BME680 is already running in a loop. I have already implemented the functionality of bme680_bsec_trigger_measurement() function using the BME68x functions. Now I was hoping to simply implement functionality of bme680_bsec_read_data() and bme680_bsec_process_data(). Will the BSEC library not work without bsec_sensor_control()? My understanding of that function is that it simply retrieves the sensor settings and the sensor settings do not change once set in my case.
If you downloaded BSEC package, you could found bsec_iot_example.c under "examples" folder. bsec_iot_example.c demonstrates how to read sensor data and call BSEC library. You can refer to it.