I want to use a Bluetooth device to send Data from MAX to an Microcontroller via Bluetooth using the serial object.
With a cable using the USB output everything works fine, but Bluetooth communication is very slow.
I think the problem is that the serial object sends one byte after another:
"It transmits data by taking a byte (an integer in the range of 0-255)
in its inlet and sending it over the selected serial port."
Bluetooth needs to establish a connction for each byte.. which makes it very slow.
The solution is to send a bunch of bytes (in my case 48 bytes) at one time.
But how should I manage it?