Deleted
Jon - are you running your App as an APK? If not, do so.
Make sure that your phone has both Bluetooth and Location enabled before your App tries to connect.
If those are all the blocks, you left out the most important part, where you read the Bluetooth text and parse it.
A sample for you...
Here is an updated blocks sample illustrating these ideas ...

Yes, I'm building it as an apk and checked if bluetooth and location is turned on before testing it, unfortunately I just can't connect to the HC05 module.
Do we know that the HC05 is:
- Wired to the Arduino correctly
- Actually fully functional
What version is that Uno? The latest one, UNO R4 Minima, has Bluetooth built-in.
I've checked all the wirings, I even checked if the HC05 is transmitting the data using Bluetooth Serial Terminal app and it is showing correctly. The arduino uno I am using is a cheap uno clone.
Well, some of the clones are actually better than the original UNO.
Can you upload your Project File (.aia) for us to study?
Hi Jon
Just going through your Project now.
Edit - one thing of note is the Project has permanent warnings - an indication of possible corruption.
I will move everything to a new file.
Well, turns out your file is corrupted - at least on my PC (Win11, FireFox)
There is always a reason for failure. Since you have got the same failure with different code, it could be something to do with the HC05 itself, or may be the power supply is inadequate....
Try this variation. If you get the same 507 as an APK, run via the AI Companion and use 'Do It' on the Bluetooth Connect Block and ListPicker Selection in that Block.
BTclient_test4.aia (16.6 KB)
thanks a lot for helping @ChrisWard, unfortunately it just won't work. I tried building as an apk nd running it in ai companion but it still gives me the same error507. I checked if all the wiring are good, and serial bluetooth terminal seems to work okay here's the picture: