简体   繁体   中英

Bluetooth Low Energy connection with special device

I'm writing an android app which is to connect a special BLE device, reading data feedback from the device. First I need to write a shake-hand code "234" to the device, and it will return a code, then start to feeding data. I've done with the iOS version, which is quite simple to implement, however the android version has so many problems. Hope you guys have any sample which can be used for me to understand how it works in whole process. Many thx.

This is documentation from Android: http://developer.android.com/guide/topics/connectivity/bluetooth-le.html There is an example. Please use it as guide. Pretty simple example.

About your question. What Profile to you use? You should know that BLE exchange data through the Service/Characteristic/Descriptor system. So on your device should be any Profile. Or your use any of standard?

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