I cannot read the data from Bluetooth in time

My device for sending and receiving data is an ESP32 using Bluetooth Classic.

In my app, I need to send “A” to the ESP32, and it will respond with two pieces of data:

  1. Echo “A” (immediately)
  2. Data (sent 5 ms after the echo)

However, Kodular can only read the echo (“A”) but not the data.

I have already tried setting the Clock Timer interval to 1 ms, but it still doesn’t work.

Since I cannot modify the ESP32 to send data more slowly, are there any Extensions or methods you recommend for handling this?

Thank you!

Try using an extension like the Bluetooth Classic Extension by Kodular to handle data streams more efficiently. Another option is to use a buffer to store the incoming data and process it after a short delay.

1 Like

Thank you :grinning: