02-12-2022 11:45 AM
Hi there. I am trying to implement BSEC functions for sensor BME680 using ESP32 chip with ESP-IDF framework. I was able to implement all needed libraries and also compile my project but I still cant read data from my sensor. I wrote functions bus_write, bus_read, sleep, get_time_us, output_ready and config_load (see in attachment file main.c). But I am not sure what to write to functions state_load and state_save, there is nothing about them in integration guide. Is there anyone who could provide some help, code snippets or full code with implemented functions? It would be very helpful. In attachments is my code with functions which I wrote and also my terminal output with error log. Thanks for help.
02-12-2022 12:32 PM
02-12-2022 02:18 PM
So I am thinking functions state_load() and state_save() are not necessary and I dont need to implement them? Because in your example they are not implemented (in file bme680_task.c). Thanks for answer.
02-14-2022 02:45 AM
Hello domko99,
In my program, I didn't save it.
You can refer to the code comments lave library state to non-volatile memory and load previous library state from non-volatile memory if your hardware board has non-volatile memory.