InfiniTime.git

ref: fdc89f1a20889c0295534f58dc2e82ce8c55a18b

doc/MotionService.md


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Motion Service

## Introduction

The motion service exposes step count and raw X/Y/Z motion value as READ and NOTIFY characteristics.

## Service

The service UUID is **00030000-78fc-48fe-8e23-433b3a1942d0**

## Characteristics

### Step count (UUID 00030001-78fc-48fe-8e23-433b3a1942d0)

The current number of steps represented as a single `uint32_t` (4 bytes) value.

### Raw motion values (UUID 00030002-78fc-48fe-8e23-433b3a1942d0)

The current raw motion values. This is a 3 `int16_t` array:

- [0] : X
- [1] : Y
- [2] : Z