11# WearOS Sensors
2- [ ![ ] ( https://jitpack.io/v/GeotecINIT/WearOSSensors .svg )] ( https://jitpack.io/#GeotecINIT/WearOSSensors )
2+ [ ![ Maven Central ] ( https://maven-badges.herokuapp.com/maven-central/io.github.geotecinit/wear-os-sensors/badge .svg )] ( https://maven-badges.herokuapp.com/maven-central/io.github.geotecinit/wear-os-sensors )
33
4- The _ wearossensors _ library is an Android WearOS library that allows to collect data from the IMU sensors
4+ The _ wear-os-sensors _ library is an Android WearOS library that allows to collect data from the IMU sensors
55(i.e., accelerometer and gyroscope), the magnetometer, the heart rate, and the GPS of an Android WearOS
66smartwatch (if the corresponding sensor is available in the device).
77
@@ -18,46 +18,17 @@ then receive the collected data from the smartwatch.
1818The data collection can be started both from the smartwatch and from the paired smartphone. In addition,
1919the library offers a way to communicate with the smartphone by sending messages.
2020
21- The _ wearossensors _ library uses and extends the functionality of the Android
22- [ _ backgroundsensors _ ] ( https://github.com/GeoTecINIT/BackgroundSensors ) library, and therefore, it is safe to carry out
21+ The _ wear-os-sensors _ library uses and extends the functionality of the Android
22+ [ _ background-sensors _ ] ( https://github.com/GeoTecINIT/BackgroundSensors ) library, and therefore, it is safe to carry out
2323the data collection in the background (i.e., when the app is not in the foreground, or the smartwatch is idle).
2424
2525
2626## Installation
27- To install the library you have to add the [ Jitpack] ( https://jitpack.io ) repository to the file where your project
28- declares the URLs of the external repositories where the dependencies are looked for:
29-
30- <details >
31- <summary >build.gradle (project)</summary >
32-
33- ``` groovy
34- allprojects {
35- repositories {
36- // ...
37- maven { url 'https://jitpack.io' }
38- }
39- }
40- ```
41- </details >
42-
43- <details >
44- <summary >settings.gradle</summary >
45-
46- ``` groovy
47- dependencyResolutionManagement {
48- repositories {
49- // ...
50- maven { url 'https://jitpack.io' }
51- }
52- }
53- ```
54- </details >
55-
56- Then, just add the dependency in your _ build.gradle_ (module):
27+ To install the library you have to add the dependency in your ` build.gradle ` :
5728
5829``` groovy
5930dependencies {
60- implementation 'com .github.GeotecINIT:WearOSSensors :1.1 .0'
31+ implementation 'io .github.geotecinit:wear-os-sensors :1.0 .0'
6132}
6233```
6334
@@ -215,7 +186,7 @@ public class MainActivity extends Activity {
215186```
216187
217188> ** Note** : Here we are using [ ` Sensor ` ] ( #sensor ) and [ ` CollectionConfiguration ` ] ( #collectionconfiguration )
218- > from [ _ backgroundsensors _ ] ( https://github.com/GeoTecINIT/BackgroundSensors ) .
189+ > from [ _ background-sensors _ ] ( https://github.com/GeoTecINIT/BackgroundSensors ) .
219190> Check its documentation for more information.
220191
221192### Messaging
@@ -273,7 +244,7 @@ of the demo application.
273244| ` LOCATION ` | Represents the GPS. |
274245
275246### ` SensorManager `
276- Refer to the [ _ backgroundsensors _ ] ( https://github.com/GeoTecINIT/BackgroundSensors#sensormanager ) documentation.
247+ Refer to the [ _ background-sensors _ ] ( https://github.com/GeoTecINIT/BackgroundSensors#sensormanager ) documentation.
277248
278249### [ ` PermissionsManager ` ] ( wearossensors/src/main/java/es/uji/geotec/wearossensors/permissions/PermissionsManager.java )
279250| ** Static Method** | ** Return type** | ** Description** |
@@ -298,10 +269,10 @@ Refer to the [_backgroundsensors_](https://github.com/GeoTecINIT/BackgroundSenso
298269| ` sendStopCommand(Sensor sensor) ` | ` void ` | Sends a command to the smartphone to stop the collection of the specified sensor in the smartwatch. |
299270
300271#### CollectionConfiguration
301- Refer to the [ _ backgroundsensors _ ] ( https://github.com/GeoTecINIT/BackgroundSensors#collectionconfiguration ) documentation.
272+ Refer to the [ _ background-sensors _ ] ( https://github.com/GeoTecINIT/BackgroundSensors#collectionconfiguration ) documentation.
302273
303274#### Sensor
304- Refer to the [ _ backgroundsensors _ ] ( https://github.com/GeoTecINIT/BackgroundSensors ) documentation.
275+ Refer to the [ _ background-sensors _ ] ( https://github.com/GeoTecINIT/BackgroundSensors ) documentation.
305276
306277### [ ` PlainMessageClient ` ] ( wearossensors/src/main/java/es/uji/geotec/wearossensors/plainmessage/PlainMessageClient.java )
307278| ** Method** | ** Return type** | ** Description** |
0 commit comments