I tested with your code.
And, I got gas value.
Could you let me know the "meas_period" value?
And, could you have one more test?
gas_sensor.delay_ms = user_delay_ms; /* amb_temp can be set to 25 prior to configuring the gas sensor or by performing a few temperature readings without operating the gas sensor. */ gas_sensor.amb_temp = 25;
/// Add below 4 lines.
uint8_t addr = 0xE0; uint8_t val = 0xB6; bme680_set_regs(&addr, &val, 1, &gas_sensor); delay(200);
If you still have an issue, I will check your i2c log as well.
... View more