I cleaned up and posted your blocks, for all to see:
Your Title said Unable to Connect (I missed that in your detailed post.)
Do you get the Failed to Connect message from this block?

Go into your phone's Settings, and grant your app permission for BlueTooth.
There are blocks to do this, see far below.
Or are you missing feedback from these events, because you did not add ELSE clauses to the connection if/then tests to announce loss of connection?


You need to nest all the transmission code in this event under the connection test, otherwise it's worthless at preventing transmission when disconnected.

Also, why do you JOIN your messages with false? Is it an attempt at creating a message delimiter like \n or \r\n?
Upload your sketch code, so we can compare message format expectations between the sketch and the ap.
Bluetooth non-BLE SCAN Permission Blocks
(Canned Response ABG - Bluetooth non-BLE SCAN Permission Blocks)
The easiest solution, for immediate relief
(from @Barry_Meaker) ...
I had the same issue. The problem is your app does not have permission to see nearby devices. The solution is to give your app permission on your phone (no code changes in your app).
on your phone,
- goto settings
- search for your app
- in App Info for your app select Permissions
- change Nearby Devices from Not Allowed to Allowed
- Done
By the way, the very first time you run the app, Android will ask if you want to grant the app this permission. If you say no, or ignore the pop-up, the permission will be set as Denied. Android will not ask again.
Draggable blocks from a proposal by @ChrisWard Aug 2024:
A more complex approach, for professional app development:
See Bluetooth liste of devices deosn't work anymore - #7 by Anke
Special note for Xiaomi devices:
I have an error with bluetooth on android 12, Xiaomi Poco X3 NFC - #20 by Patryk_F
...