NordicSemiconductor / Android-BLE-Library

A library that makes working with Bluetooth LE on Android a pleasure. Seriously.
BSD 3-Clause "New" or "Revised" License
2k stars 414 forks source link

Is there a demo for connecting and sending messages? #294

Closed xhtlxa closed 3 years ago

xhtlxa commented 3 years ago

Is there a demo for connecting and sending messages?

philips77 commented 3 years ago

Check out samples on develop branch: https://github.com/NordicSemiconductor/Android-BLE-Library/tree/develop/examples Also check out nRF Blinky: https://github.com/NordicSemiconductor/Android-nRF-Blinky/tree/develop

philips77 commented 3 years ago

I'll release a new version (one that's now on develop branch + some more features/bug fixes) in next few days.

WangShiJieAOTM commented 1 year ago

page not found , have new link?

philips77 commented 1 year ago

The samples are in examples folder. nRF Blinky is now merged to main branch.

WangShiJieAOTM commented 1 year ago

The example folder contains the kotlin version. Is there a Java version?

philips77 commented 1 year ago

You may find Java version of nRF Blinky at tag 2.7.0 here: https://github.com/NordicSemiconductor/Android-nRF-Blinky/tree/2.7.0

Here's the BlinkyManager in Java: https://github.com/NordicSemiconductor/Android-nRF-Blinky/blob/2.7.0/app/src/main/java/no/nordicsemi/android/blinky/profile/BlinkyManager.java