Skip to first unread message

leo p

unread,
Feb 28, 2019, 12:56:43 PM2/28/19
to MIT App Inventor Forum
Hi all,

I'm using an external bluetooth module that notifies me to the smartphone the changes in the values of two sensors that have UUIDs of different service and characteristics. I use "call BluetoothLE1.RegisterForBytes" together with "when BluetoothLE1 .BytesReceived" to receive data. But I can see the value of only one of the data while I would like to be able to separate and visualize them together.
Can someone help me?

Thanks

Evan Patton

unread,
Feb 28, 2019, 1:41:44 PM2/28/19
to MIT App Inventor Forum
You should be able to call RegisterForBytes for multiple services/characteristics and get updates for both. In the BytesReceived handler, you can then branch based on the characteristic UUID to visualize the two streams separately.

Regards,
Evan
Reply all
Reply to author
Forward
0 new messages