Skip to content

Commit e8eee76

Browse files
authored
Merge pull request #832 from mabuch/fix-doc-motionservice-uuid
fix Motion Service UUID in doc and code comments
2 parents 279e63c + a631fa3 commit e8eee76

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

doc/MotionService.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
The motion service exposes step count and raw X/Y/Z motion value as READ and NOTIFY characteristics.
44

55
## Service
6-
The service UUID is **00020000-78fc-48fe-8e23-433b3a1942d0**
6+
The service UUID is **00030000-78fc-48fe-8e23-433b3a1942d0**
77

88
## Characteristics
9-
### Step count (UUID 00020001-78fc-48fe-8e23-433b3a1942d0)
9+
### Step count (UUID 00030001-78fc-48fe-8e23-433b3a1942d0)
1010
The current number of steps represented as a single `uint32_t` (4 bytes) value.
1111

12-
### Raw motion values (UUID 00020002-78fc-48fe-8e23-433b3a1942d0)
12+
### Raw motion values (UUID 00030002-78fc-48fe-8e23-433b3a1942d0)
1313
The current raw motion values. This is a 3 `int16_t` array:
1414

1515
- [0] : X

src/components/ble/MotionService.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
using namespace Pinetime::Controllers;
66

77
namespace {
8-
// 0002yyxx-78fc-48fe-8e23-433b3a1942d0
8+
// 0003yyxx-78fc-48fe-8e23-433b3a1942d0
99
constexpr ble_uuid128_t CharUuid(uint8_t x, uint8_t y) {
1010
return ble_uuid128_t{
1111
.u = {.type = BLE_UUID_TYPE_128},
1212
.value = { 0xd0, 0x42, 0x19, 0x3a, 0x3b, 0x43, 0x23, 0x8e, 0xfe, 0x48, 0xfc, 0x78, x, y, 0x03, 0x00 }
1313
};
1414
}
1515

16-
// 00020000-78fc-48fe-8e23-433b3a1942d0
16+
// 00030000-78fc-48fe-8e23-433b3a1942d0
1717
constexpr ble_uuid128_t BaseUuid() {
1818
return CharUuid(0x00, 0x00);
1919
}

0 commit comments

Comments
 (0)