I understand that you would like to transfer data between a Bluetooth Server and BLE as strings.
To send and read the data as strings, you can use write() & read() if the number of characters to be transferred is available. You can refer to the following documentation for further details:
- https://www.mathworks.com/help/matlab/ref/bluetooth.write.html
- https://www.mathworks.com/help/matlab/ref/bluetooth.read.html
You can also use the pair writeline() and readline() by setting the terminator as follows:
configureTerminator(device,"CR")
The following documentation can be referred to for further information: