Bluetooth code not working

This is the first time I am trying this and frankly I am running out of ideas on what and how to fix this. Can anyone provide some insight on how to fix this or make it better. Thank you so much in advance!

bluetooth caht.aia (5.7 KB)

If you are asking for help, I recommend you to make it as easy for others to be able to help you ...
You probably will get more feedback then...

which means in your case post a screenshot of your relevant blocks...

To download the aia file, upload it to App Inventor, open it, do some bug hunting for you, etc... this takes time, and most people will not do that...
Thank you.

Taifun


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by icon24 Taifun.

Thank you for the advice. I have never posted here for help on anything and figured I would give it a shot. I will make some edits and repost for a more streamlined approach. I wasn't sure what to include.
Thank you again!

You are using both the Bluetooth Client and Server components.

What for?

Is this a chat app?

How to correctly ask for Bluetooth permissions see here

Taifun

Yes it is a chat app that allows communication between two android phones when they are connected to bluetooth. We think the main issue is the client server that you mentioned. The phones have to be able to switch between being the client and the server based on whether they are receiving the message or sending it. I have certainly bit off more than I can chew here base on my skillset!

See the third link at

No, the device which axcepts the connection is the server, see my chat example App Inventor Tutorials and Examples: Bluetooth Chat | Pura Vida Apps
Nowadays you additionally have to ask for permissions as already mentioned

Taifun