Yes, that is also what I was thinking. But I think the MicroBlocks route is much simpler for a lot of users I see here on the community wanting to use BLE, that is why I offered an alternative way.
Hi @Elleanda if you want to continue with Peters' approach, that is fine with me, but depending on why you are making this project, it may not be what you want. Therefore some tips:
First, in the .hex, go to project settings (click on the little round weel at the top right)and set "no pairing required". This will save you a lot of grief. Reload the .hex on your micro:bit.
Then, here is my latest UART app, it is almost what you need, you have to add the name stuff and you may not want the temperature stuff. BTReadWrite4_strings.aia (296.9 KB)
Then,you could update your BluetoothLE extension, by downloading the latest .aix file here:
Update the extensionby importing it (it will overwrite the old one), but maybe, if you do not have the super latest Android on your phone, you may not need to do that,
Let us know how you go.
Yes, I saw that block. However, your latest .aia and .hex do not work. One reason is I cannot connect to my microbit, you really need to set ‘no pairing’ in your .hex project, and on the app inventor side you need to stop scanning and not stop advertising. Furthermore, there is the BT client and the ESP stuff. Maybe harmless, in any case ugly.
I wanted to repair your project, but something in your code really upsets my companion. I do not have time the next few days.