11-10-2022 04:21 PM
Hello,
we are trying to use the BME688 on one of our devices next to other sensors. To handle the sensors we use a MCU, which runs a cooperative and event driven state machine in a single main loop. Therefore any task should "race to completion".
However the BME68X Sensor API asks for a delay function, which is also used in some parts of the code. Any task, that uses the delay function is not "rtc" and blocks the main loop, which is a big problem for us, as we cannot communicate meanwhile.
Is there another version of the Sensor API, which does not use any delays and can be used for our purpose?
Greetings,
Fealcon
11-14-2022 10:11 AM
Hi Fealcon,
You can replace the sensor API that calls the delay function bme.delay_us() with your own delay function.