简体   繁体   中英

Receive string data from Arduino sensor to Android Studio Textview via HC-05 Bluetooth

So we followed this for the Bluetooth Connection and it was successfully connected. ( https://www.instructables.com/Android-Bluetooth-Control-LED-Part-2/ )

However, the problem is that, we cannot figure out how to display or receive a string data from our Arduino sensors to our Android Studio application via Bluetooth . We are planning to display the data on a Textview .

You must implement some reading loop in separate thread. Please check android sample app BluetoothChat for details. (method run in class ConnectedThread )

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