You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-1Lines changed: 12 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,6 @@
1
1
SmartGattLib
2
2
============
3
+
<ahref="https://jitpack.io/#movisens/SmartGattLib/"><imgsrc="https://img.shields.io/github/tag/movisens/SmartGattLib.svg?label=Maven on JitPack" /></a>
3
4
4
5
SmartGattLib is a Java library that simplifies the work with **Bluetooth SMART** devices (a.k.a. **Bluetooth Low Energy** in Bluetooth 4.0). It provides all UUIDs of the adopted [GATT specification](http://developer.bluetooth.org/gatt/Pages/default.aspx) and an convenient way to interpret the characteristics (e.g. Heart Rate, BatteryLevel).
5
6
@@ -31,7 +32,17 @@ Working with Bluetooth SMART devices is usually done in the following way:
31
32
32
33
### Set up ###
33
34
34
-
1. Download the latest .jar file from the [releases](https://github.com/movisens/SmartGattLib/releases) page and place it in your Android app’s libs/ folder.
35
+
1. Add the JitPack repository and the dependency to your build file:
36
+
37
+
```gradle
38
+
repositories {
39
+
maven { url "https://jitpack.io" }
40
+
}
41
+
dependencies {
42
+
compile 'com.github.movisens:SmartGattLib:1.7'
43
+
}
44
+
```
45
+
or download the latest .jar file from the [releases](https://github.com/movisens/SmartGattLib/releases) page and place it in your Android app’s libs/ folder.
35
46
2. Use the example below to identifiy services and characteristics and interpret their data
0 commit comments