Regarding the message fragmentation problem mentioned by @Gerard,
please see the attached code fragment to handle message reassembly
and delimiter (\r\n) handling for strings arriving via the BLE
Strings Received event.
I use a for each loop on the StringsReceived list items instead of
implicit list to text conversion to avoid the extra spaces that would
be inserted between text fragments in the (item item item) default list-to-text conversion
in the sample earlier in this thread.
The reassemble procedure handles reassembly of small text fragments
within an IncomingDataLabel.Text field for visibility and
because i didn't want to have to remember whether or not AI2
procedures parameters work by value or by reference.
When a delimiter is encountered, the reassembler procedure checks if the preceding
message has been completely handled (is the MessageLabel Text empty?),
and then it would clip off the incoming message from the IncomingDataLabel.Text
buffer, frop the new message text into the MessageLabel.Text buffer, then call
a procedure to handle the new message.
(editted to fix bug in label.text handling - ABG)
(re-editted for another label.text blooper - ABG)
ABG