简体   繁体   中英

Searching for a Bluetooth code on Android Studio that work

I'm (trying to) develop a Android application. It's aim is to display information received from an Arduino Nano (or maybe Uno, it's not decided yet) using an HC-06, to communicate by Bluetooth.

I've tried many (everything i've found) code exemple, but it all didn't work for me, I dont know if it is because I made it wrong or what but I can't get the nearby Bluetooth devices' names.

I want to connect to the Arduino and being able to read data it send.

If someone know how to separate the bytes received and put them into different variables, I'm listening too.

您可以查看这篇文章Create an Android App With Android Studio to Control LED ,它将帮助您创建一个与Bluetooth设备(Arduino)配对并控制 LED 的Android应用程序。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM