Glitched data printing using bluetooth

Here are some examples in blocks for you, starting with the simplest case and working on upwards in complexity:

Here is a simple BlueTooth text receiver sample, for single value per line:


initialize global message to

You pretty much have that already, but you will need to capture into a message variable before you can get to the next level, multiple readings per message:

Here is an updated blocks sample illustrating these ideas ...

BlueTooth_delimiter_sample.aia (3.4 KB) global message

P.S. These blocks can be dragged directly into your Blocks Editor workspace.

Dragging blocks

In your case, you would need 4 Labels, for x,y,z,power results, and
you would need to print 4 values separated by commas ending with a println() to send the message.

Do you plan on graphing the values in the app?
I have another sample for that.

2 Likes