Hi there,
I'm using App Inventor to create an IoT App using micro:bit.
I found the following description on MIT App Inventor + Internet of Things, so I posted this.
"Please Note: Some of the tutorials and other materials on this website may be outdated, resulting in non-functioning apps. We are currently creating new Internet of Things components and tutorials. For specific technical questions, search or post on our community discussion forum. -- The App Inventor Team 3/31/22"
I think that UART is the most important feature (profile) in micro:bit BLE. Although there are other functions, UART can be substituted.
I hope that UART is supported in the next release too.
Currently, it is difficult to use UART with the methods of use that are open to the public, but I am using it as follows based on various information and my trials.
The extensions I am currently using are:
edu.mit.appinventor.ble-20200828.aix
com.bbc.microbit.profile-20200518.aix
The extension that utilizes UART is Microbit_Uart_Simple.
Using this extension, we are able to send and receive data as follows.
The code of App Inventor for sending.
(Enclose the sent message with "#" and "##". The octets to be able to send is 16. I know this is a rule of thumb and an interim method.)
The code of Makecode for sending.
The code of App Inventor for receiving,
The code of Makecode for receiving,
Best regards,