Change the example Bluetooth code to connect to devices other than Android.

I am creating an application based on the example of a Bluetooth chat featured on the official Android developer website. My application works great while communicating with another Android phone. However, it does not work when I connect it to a non-Android device (namely, to some kind of electronic circuit that my team did). An online study found that the Code Sample is for communication only between two Android devices. So, how do I change the sample code so that it works with devices other than Android.

+5
source share
2 answers

I understood the answer by analyzing the source code of the BlueTerm application. In fact, I only needed to change the UUID that I installed in the application from fa87c0d0-afac-11de-8a39-0800200c9a66to00001101-0000-1000-8000-00805F9B34FB"

I am not an expert in this field, so I can’t say WHY this is so, but it helps solve my problem. BlueTerm SourceCode Available on Pymasde Official Download Site

+8
source

The UUID is specifically designed for serial connection, and it is standard.

0
source

All Articles