Is it Possible to Send Multiple Text Strings to Bluetooth too Quickly?

Two code snips:


and

In the first block I sent two text strings to Bluetooth (ESP32) in quick succession. The second message doesn't seem to make it through.

In the second block of code, I disable the first Bluetooth send and then the second Bluetooth send makes it through.

Is there an issue with sending text to Bluetooth in quick succession like this?

I wonder if anyone has any insights on this?

Rather than sending individual messages in quick succession, i've changed my communication/parsing with the ESP32 to accept multiple command messages in one string. Eg:

The ESP32 just reads up to each '|' delimiter and parses each command/integer pair one at a time from the bluetooth serial buffer. Any '\n' delimiter that is sent is automatically discarded by the ESP32.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.