1
0
Fork 0
InfiniTime/doc/MotionService.md

24 lines
530 B
Markdown
Raw Normal View History

2021-10-17 08:34:24 +02:00
# Motion Service
2021-10-17 08:34:24 +02:00
## Introduction
2021-10-17 08:34:24 +02:00
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**
2021-10-17 08:34:24 +02:00
## Characteristics
### Step count (UUID 00030001-78fc-48fe-8e23-433b3a1942d0)
2021-10-17 08:34:24 +02:00
The current number of steps represented as a single `uint32_t` (4 bytes) value.
### Raw motion values (UUID 00030002-78fc-48fe-8e23-433b3a1942d0)
2021-10-17 08:34:24 +02:00
The current raw motion values. This is a 3 `int16_t` array:
- [0] : X
- [1] : Y
- [2] : Z