Skip to content

Commit 31badd2

Browse files
committed
Add doc about the new motion service.
1 parent 60a49af commit 31badd2

2 files changed

Lines changed: 25 additions & 7 deletions

File tree

doc/MotionService.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Motion Service
2+
## Introduction
3+
The motion service exposes step count and raw X/Y/Z motion value as READ and NOTIFY characteristics.
4+
5+
## Service
6+
The service UUID is **00020000-78fc-48fe-8e23-433b3a1942d0**
7+
8+
## Characteristics
9+
### Step count (UUID 00020001-78fc-48fe-8e23-433b3a1942d0)
10+
The current number of steps represented as a single `uint32_t` (4 bytes) value.
11+
12+
### Raw motion values (UUID 00020002-78fc-48fe-8e23-433b3a1942d0)
13+
The current raw motion values. This is a 3 `int16_t` array:
14+
15+
- [0] : X
16+
- [1] : Y
17+
- [2] : Z

doc/ble.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,15 @@ When the service does not exist in the BLE specification, InfiniTime implement c
2929
The following custom services are implemented in InfiniTime:
3030

3131
- Since InfiniTime 0.8:
32-
```
33-
* Music Service : 00000000-78fc-48fe-8e23-433b3a1942d0
34-
```
35-
32+
* Music Service : 00000000-78fc-48fe-8e23-433b3a1942d0
33+
34+
3635
- Since InfiniTime 0.11:
37-
```
38-
* Navigation Service : 00010000-78fc-48fe-8e23-433b3a1942d0
39-
```
36+
* [Navigation Service](NavigationService.md) : 00010000-78fc-48fe-8e23-433b3a1942d0
37+
38+
39+
- Since InfiniTime 1.7:
40+
* [Motion Service](MotionService.md) : 00020000-78fc-48fe-8e23-433b3a1942d0
4041

4142
## BLE services
4243
[List of standard BLE services](https://www.bluetooth.com/specifications/gatt/services/)

0 commit comments

Comments
 (0)