ESP32 as I2C Slave. What is the response when master reads ?

sfarras
Posts: 2
Joined: Tue Apr 10, 2018 2:58 pm

ESP32 as I2C Slave. What is the response when master reads ?

Postby sfarras » Tue Apr 10, 2018 3:27 pm

Hi to everyone !!
I'm using the ESP32 as I2C slave, connected to a master that polls the ESP so frequently.

My problem :
When the master reads from ESP and the ESP fifo is empty, the ESP responds garbage to the master.

In my opinion, when the master tries to read from slave (ESP32) and the slave has no data to respond (it means, the function
i2c_slave_write_buffer() is not called yet) , the slave should produce a NACK.

-->> How can I produce a NACK when the master tries to read from ESP32 and the function
i2c_slave_write_buffer is not called yet ?

Thank you !!

Who is online

Users browsing this forum: No registered users and 27 guests