In your source, you changed some code as below, you used 100 instead of get_timestamp_us.
bsec_iot_loop(sleep, 1000, output_ready, state_save, 10000);
get_timestamp_us isn't just 1000, it's function to get some timestamp for getting interval time.
Therefore, you should implement same function for it.
return (int64_t) millis() * 1000;
Then, could you please let me know the result?
Sorry late reply, today i just try input the timing. I'm using the xTaskGetTickCount() in FreeRTOS. However, the result still not change.
Or could you send the sample code which including the setting of heatup, gas_wait , nb_conv ,and etc.?
If you are using our official source, it should be enough to get right value.
I have some question.
As you said, you are using xTaskGetTickCount() . When you set get_timestamp_us function using xTaskGetTickCount, can you get right time?
And what is the output type of xTaskGetTickCount?
We are using get_timestamp_us return type as int64, it means our system time lasts 2^64 us.
Yes, i modified the code from https://www.bosch-sensortec.com/software-tools/software/bsec/
I have use xTaskGetTickCount() which is in ms. I using the value x 1000000 to archieve nano second. Although it is not very accurate, i think it should be a little bit change value. Is it? Is it any other thing set wrong in my code?