Moderator: igrr
The most logical solution is to use a more capable framework. A second processor that would just be dealing with watching/decoding I2C, and the ESP that handles the resultant data and sends it to where it needs to go. In theory the ESP32 should be able to do this. It has one dedicated processor for WiFi and the other to do dedicated work without without the WiFi overhead. At this time I would go for a dual processor approach rather than the ESP32. Because I personally don't have any real experience with the ESP32 yet. Only tried a few examples.