Stream Binary Data from Arduino Nano 33 BLE to PC via BLE

All transmission is in binary bytes so it's not clear what you are asking? What data are you trying to send?

The .writeValue function to send an arrary of bytes is

int writeValue(const uint8_t value[], int length);

And you can use this to send a generic chunk of data cast to bytes. There is a data size limit of 20 bytes based on a BLE core specification of 33 maximum bytes in the payload.

.writeValue((uint8_t *)&myData, sizeof(myData));
2 Likes