gutierrezps / ESP32_I2C_Slave

I2C slave library for ESP32
GNU Lesser General Public License v2.1
81 stars 20 forks source link

Send large amount of data? #15

Closed openedhardware closed 2 years ago

openedhardware commented 3 years ago

Thanks for your great library!

I am just curious how to send a large amount of data? Say 3~4k bytes?

Of course, I can split the 3~4k bytes payload into several 128-byte blocks, but not sure how to send the 2nd block..

Using WireSlave.write() function, but it returns 0 if the buffer is full with 128 bytes.

Thanks!

gutierrezps commented 2 years ago

Unfortunately, I couldn't address this issue in a timely manner because I haven't been working with the ESP32 ever since. In this meantime, I2C Slave support has been added to the official ESP32 framework as you can see in the updated README of this repo. Therefore this library is no longer needed and its development will be ceased.

gutierrezps commented 2 years ago

In your particular case, I don't think I2C is the right protocol to send large ammount of data. I would advise you to use Serial since it has a larger buffer and it doesn't depend on master readings.