summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJF <JF002@users.noreply.github.com>2021-11-28 13:21:08 +0100
committerGitHub <noreply@github.com>2021-11-28 13:21:08 +0100
commite8eee76b48078914ce5ab1ee1e32a8fbe44a1b77 (patch)
tree55fd23cbb11e7c207dd294c1790522164d148612
parent279e63c97af4fa4f28410717bf626c273db1fee6 (diff)
parenta631fa351858f722f8c4ba7992901722acf3f0c9 (diff)
Merge pull request #832 from mabuch/fix-doc-motionservice-uuid
fix Motion Service UUID in doc and code comments
-rw-r--r--doc/MotionService.md6
-rw-r--r--src/components/ble/MotionService.cpp4
2 files changed, 5 insertions, 5 deletions
diff --git a/doc/MotionService.md b/doc/MotionService.md
index 0d0a5514..7cec3fba 100644
--- a/doc/MotionService.md
+++ b/doc/MotionService.md
@@ -3,13 +3,13 @@
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**
+The service UUID is **00030000-78fc-48fe-8e23-433b3a1942d0**
## Characteristics
-### Step count (UUID 00020001-78fc-48fe-8e23-433b3a1942d0)
+### 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 00020002-78fc-48fe-8e23-433b3a1942d0)
+### Raw motion values (UUID 00030002-78fc-48fe-8e23-433b3a1942d0)
The current raw motion values. This is a 3 `int16_t` array:
- [0] : X
diff --git a/src/components/ble/MotionService.cpp b/src/components/ble/MotionService.cpp
index b4786ab5..284c60dc 100644
--- a/src/components/ble/MotionService.cpp
+++ b/src/components/ble/MotionService.cpp
@@ -5,7 +5,7 @@
using namespace Pinetime::Controllers;
namespace {
- // 0002yyxx-78fc-48fe-8e23-433b3a1942d0
+ // 0003yyxx-78fc-48fe-8e23-433b3a1942d0
constexpr ble_uuid128_t CharUuid(uint8_t x, uint8_t y) {
return ble_uuid128_t{
.u = {.type = BLE_UUID_TYPE_128},
@@ -13,7 +13,7 @@ namespace {
};
}
- // 00020000-78fc-48fe-8e23-433b3a1942d0
+ // 00030000-78fc-48fe-8e23-433b3a1942d0
constexpr ble_uuid128_t BaseUuid() {
return CharUuid(0x00, 0x00);
}