diff options
| author | JF <jf@codingfield.com> | 2021-01-23 16:41:29 (GMT) |
|---|---|---|
| committer | Gitea <gitea@fake.local> | 2021-01-23 16:41:29 (GMT) |
| commit | 76ab14fa5f7979dd764b449396dc5835a286ec6d (patch) | |
| tree | 846b39f9c412854c57fd15cc37e920b7affa28c5 /doc/ble.md | |
| parent | 1d940af924bac5728a4d494f780e298e5b67b707 (diff) | |
| parent | 84b509ed9536e081f370d2fd7c519c9ed6acfea4 (diff) | |
Merge branch 'develop' of JF/PineTime into master
Diffstat (limited to 'doc/ble.md')
| -rw-r--r-- | doc/ble.md | 23 |
1 files changed, 23 insertions, 0 deletions
@@ -15,6 +15,29 @@ If **CTS** is detected, it'll request the current time to the companion applicat  +## BLE UUIDs +When possible, InfiniTime tries to implement BLE services defined by the BLE specification. + +When the service does not exist in the BLE specification, InfiniTime implement custom services. As all BLE services, custom services are identified by a UUID. Here is how to define the UUID of custom services in InfiniTime: + +``` + - Base UUID : xxxxxxxx-78fc-48fe-8e23-433b3a1942d0 + - Service UUID : SSSS0000-78fc-48fe-8e23-433b3a1942d0 where SSSS is the service ID + - Characteristic UUID : SSSSCCCC-78fc-48fe-8e23-433b3a1942d0 where CCCC is the characteristic ID for the service SSSS and is different than 0 +``` + +The following custom services are implemented in InfiniTime: + + - Since InfiniTime 0.8: + ``` + * Music Service : 00000000-78fc-48fe-8e23-433b3a1942d0 + ``` + + - Since InfiniTime 0.11: + ``` + * Navigation Service : 00010000-78fc-48fe-8e23-433b3a1942d0 + ``` + ## BLE services [List of standard BLE services](https://www.bluetooth.com/specifications/gatt/services/) |
