mirror of
https://github.com/InfiniTimeOrg/InfiniTime.git
synced 2024-12-20 00:02:14 +03:00
18 lines
527 B
Markdown
18 lines
527 B
Markdown
|
# 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 **00020000-78fc-48fe-8e23-433b3a1942d0**
|
||
|
|
||
|
## Characteristics
|
||
|
### Step count (UUID 00020001-78fc-48fe-8e23-433b3a1942d0)
|
||
|
The current number of steps represented as a single `uint32_t` (4 bytes) value.
|
||
|
|
||
|
### Raw motion values (UUID 00020002-78fc-48fe-8e23-433b3a1942d0)
|
||
|
The current raw motion values. This is a 3 `int16_t` array:
|
||
|
|
||
|
- [0] : X
|
||
|
- [1] : Y
|
||
|
- [2] : Z
|