06-02-2022 12:55 PM
07-01-2022 10:00 AM
Hi ilcnet,
You can download BSEC 2.x Software from https://www.bosch-sensortec.com/software-tools/software/bme688-software/
You can refer integration guide and "BSEC_2.0.6.1_Generic_Release_04302021\examples\bsec2\examples\basic_config_state" example code.
bool saveState(Bsec& bsec)
{
uint8_t bsecState[BSEC_MAX_STATE_BLOB_SIZE];
if (!bsec.getState(bsecState))
return false;
Serial.println("Writing state to EEPROM");
for (uint8_t i = 0; i < BSEC_MAX_STATE_BLOB_SIZE; i++) {
EEPROM.write(i + 1, bsecState[i]);
Serial.println(bsecState[i], HEX);
}
EEPROM.write(0, BSEC_MAX_STATE_BLOB_SIZE);
EEPROM.commit();
return true;
}