简体   繁体   中英

Transmit data from smartwatch to smartphone over bluetooth

I need some help for data transmission between Android Wear and Android phone. I found some tutorials and sample code, so I could make a framework. Much of my code is similar to the Android open source sample, https://github.com/googlesamples/android-BluetoothChat . But my question is, if devices are already paired, do I need them all? In other words, my Android Wear watch and Android phone are already paired, can data transfer be much simpler? Or do each application using Bluetooth need everything from above sample code? Anyone who has this kind of experience of knows useful samples, please help me!

Thank you in advance!

If your devices are already paired you don't have to set up the Bluetooth connection yourself. You can simply use the Data Layer API to synchronize and send data between the wearable and the phone.

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