I2C Simultaneous master and slave

Hello,

Does anyone know if it's possible to
a. Have an ESP32 alternate between being an master and a slave on one i2c bus?
b. Having two I2C interfaces using TwoWire on a single I2C bus.

My project is working well with two different I2C buses, but it would be better if I got it to work using only one I2C bus.

Thanks!

What are you trying to achieve that is not possible with fixed roles ?

I have two ESP32's and one MPU6050. The middle ESP is requesting data from the sensor as a master and sending taht in a requestHandler to the master ESP. Basically it just forwards the data.

Yes, simply try.