Delimiters
Delimiters are characters in a received data string which divide the string into smaller strings to form separate data items.
Although multiple delimiter characters can be set in the delimiters string, it is common to have received data separated using just one delimiter character, such as a comma:
"data1,data2,data3,data4"
So, you can specify a delimiter character using the ||serial:serial delimiters||
which create a single character delimiter string for you…
bluetooth.onUartDataReceived(serial.delimiters(Delimiters.Comma), function () {
})
Or, maybe…
let delim = serial.delimiters(Delimiters.NewLine)
basic.showString(bluetooth.uartReadUntil(delim))