First post, first app, first proposed change to an extension!
Just wanted to share a code bit with you all. App Inventor is awesome by the way! However, with my first app project I was a little frustrated with the fact that you cannot store the MAC address of a BLE device and connect to it between closing the application and opening it again.
So I went down the route of installing the sources and building App Inventor on my PC and modifying the BLE extension to permit the creation of a manual BluetoothDevice type. I have only done simple testing on it and it seems like I haven’t broken anything… yet. So, coupled with TinyDB, I have a persistent MAC address that I can use between closing and opening the application and BLE doesn’t give me that “no devices in the list” warning anymore.
The changes I did to the connectwithaddress method is attached. I might eventually get around to posting some proposed changes on git, but I am a bit lazy at the moment.
Cheers!
connectwithaddress.txt (2.7 KB)