ZIPAndroid-BLE-Library-version-1x.zip 87.26KB

f000102

资源文件列表:

Android-BLE-Library-version-1x.zip 大约有36个文件
  1. Android-BLE-Library-version-1x/
  2. Android-BLE-Library-version-1x/.gitignore 56B
  3. Android-BLE-Library-version-1x/LICENSE 1.47KB
  4. Android-BLE-Library-version-1x/README.md 3.04KB
  5. Android-BLE-Library-version-1x/ble/
  6. Android-BLE-Library-version-1x/ble/.gitignore 7B
  7. Android-BLE-Library-version-1x/ble/build.gradle 3.48KB
  8. Android-BLE-Library-version-1x/ble/proguard-rules.pro 751B
  9. Android-BLE-Library-version-1x/ble/src/
  10. Android-BLE-Library-version-1x/ble/src/main/
  11. Android-BLE-Library-version-1x/ble/src/main/AndroidManifest.xml 316B
  12. Android-BLE-Library-version-1x/ble/src/main/java/
  13. Android-BLE-Library-version-1x/ble/src/main/java/no/
  14. Android-BLE-Library-version-1x/ble/src/main/java/no/nordicsemi/
  15. Android-BLE-Library-version-1x/ble/src/main/java/no/nordicsemi/android/
  16. Android-BLE-Library-version-1x/ble/src/main/java/no/nordicsemi/android/ble/
  17. Android-BLE-Library-version-1x/ble/src/main/java/no/nordicsemi/android/ble/BleManager.java 71.96KB
  18. Android-BLE-Library-version-1x/ble/src/main/java/no/nordicsemi/android/ble/BleManagerCallbacks.java 7.04KB
  19. Android-BLE-Library-version-1x/ble/src/main/java/no/nordicsemi/android/ble/Request.java 15.28KB
  20. Android-BLE-Library-version-1x/ble/src/main/java/no/nordicsemi/android/ble/error/
  21. Android-BLE-Library-version-1x/ble/src/main/java/no/nordicsemi/android/ble/error/GattError.java 5.8KB
  22. Android-BLE-Library-version-1x/ble/src/main/java/no/nordicsemi/android/ble/utils/
  23. Android-BLE-Library-version-1x/ble/src/main/java/no/nordicsemi/android/ble/utils/ILogger.java 2.29KB
  24. Android-BLE-Library-version-1x/ble/src/main/java/no/nordicsemi/android/ble/utils/ParserUtils.java 2.39KB
  25. Android-BLE-Library-version-1x/ble/src/main/res/
  26. Android-BLE-Library-version-1x/ble/src/main/res/values/
  27. Android-BLE-Library-version-1x/ble/src/main/res/values/strings.xml 1.88KB
  28. Android-BLE-Library-version-1x/build.gradle 704B
  29. Android-BLE-Library-version-1x/gradle.properties 730B
  30. Android-BLE-Library-version-1x/gradle/
  31. Android-BLE-Library-version-1x/gradle/wrapper/
  32. Android-BLE-Library-version-1x/gradle/wrapper/gradle-wrapper.jar 52.38KB
  33. Android-BLE-Library-version-1x/gradle/wrapper/gradle-wrapper.properties 233B
  34. Android-BLE-Library-version-1x/gradlew 4.85KB
  35. Android-BLE-Library-version-1x/gradlew.bat 2.26KB
  36. Android-BLE-Library-version-1x/settings.gradle 14B

资源介绍:

Android-BLE-Library-version-1x.zip
# Android BLE Library [ ![Download](https://api.bintray.com/packages/nordic/android/ble-library/images/download.svg?version=1.2.0) ](https://bintray.com/nordic/android/ble-library/1.2.0/link) This library has been extracted from [nRF Toolbox](https://github.com/NordicSemiconductor/Android-nRF-Toolbox) project. It contains classes useful when doing a connection to a Bluetooth LE device. ## Features **BleManager** class provides the following features: 1. Connection 2. Service discovery 3. Bonding (optional) 4. Enabling Service Changed indications 5. Device initialization 6. Async BLE operations using queue 7. Reading Battery Level value 8. Requesting MTU and connection priority 9. Error handling 10. Logging (in nRF Logger) The library **does not provide support for scanning** for Bluetooth LE devices. For scanning, we recommend using [Android Scanner Compat Library](https://github.com/NordicSemiconductor/Android-Scanner-Compat-Library) which brings almost all recent features, introduced in Lollipop and later, to the older platforms. ## Importing #### Maven or jcenter The library may be found on jcenter and Maven Central repository. Add it to your project by adding the following dependency: ```grovy implementation 'no.nordicsemi.android:ble:1.2.0' ``` #### Manual Clone this project and add *ble* module as a dependency to your project: 1. In *settings.gradle* file add the following lines: ```groovy include ':ble' project(':ble').projectDir = file('../Android-BLE-Library/ble') ``` 2. In *app/build.gradle* file add `implementation project(':ble')` inside dependencies. 3. Sync project and build it. See example projects listed below. ## Recent changes: Some things has changed before the lib graduated to 1.x. Those are: 1. Request class has been extracted to a standalone class, importing this class may be required. 2. Current MTU is now available in the BleManager. Use `getMtu()` to get the value. Request change using `requestMtu(int)` as before. ## How to use it Find the simple example here [Android nRF Blinky](https://github.com/NordicSemiconductor/Android-nRF-Blinky). For an example how to use it from an Activity or a Service, check the base Activity and Service classes in [nRF Toolbox](https://github.com/NordicSemiconductor/Android-nRF-Toolbox/tree/master/app/src/main/java/no/nordicsemi/android/nrftoolbox/profile). 1. Define your device API by extending `BleManagerCallbacks`: [example](https://github.com/NordicSemiconductor/Android-nRF-Blinky/blob/master/app/src/main/java/no/nordicsemi/android/blinky/profile/BlinkyManagerCallbacks.java) 2. Extend `BleManager` class and implement required methods: [example](https://github.com/NordicSemiconductor/Android-nRF-Blinky/blob/master/app/src/main/java/no/nordicsemi/android/blinky/profile/BlinkyManager.java) For examples of BLE Library v1.x please use older branches of above projects. ## Version 2.0 Please, check version 2.0 on *master* branch. Version 2 adds more features (for example synchronous requests, and more), is "almost" backwards compatible (a lot of old API has been deprecated).
100+评论
captcha
    类型标题大小时间
    ZIP案例1-毕业论文.zip246.98KB8月前
    ZIP可调电源选型 - 宽电压输出 0-60V 功率≥400W9.86MB8月前
    ZIPDepot-Management-Programe-main.zip9.77KB8月前
    ZIP2023级学生暑期社会调查活动相关材料.zip126.99KB8月前
    ZIPAC&DC SEL log.zip2KB8月前
    ZIP一个bazel使用示例1.55MB8月前
    ZIPweb端省市区三级联动插件,本人手搓好用的插件(js+html实现)36.09KB8月前
    ZIP《网络技术基础与计算思维实验教程》(第2版)pkt.zip9.99MB8月前