BSEC2 with BME680 on esp32
Hi community. I have a problem with the setup of this sensor. I’m using I2C communication with a basic setup. The only difference is that whenever the callback function is called I gather all data and send it to a local server using the MQTT protocol. Whenever the device is started, everything is working fine for the first 5-10 messages, then quite randomly I get a communication error (error -2), then again I get some correct readings and the error repeats. This cycle may repeat for 5-20 minutes and then I start getting only errors (-2). I have to mention that with the adafruit library everything is working just fine. I have a doubt that this may be somehow related to the delay induced by sending the MQTT message on each callback execution but I wasn’t able to find any useful information. Can you please help?
Thanks.