Fix markdown format with autoformatter (#1284)
This commit is contained in:
28
doc/ble.md
28
doc/ble.md
@@ -1,5 +1,7 @@
|
||||
# Bluetooth Low-Energy :
|
||||
# Bluetooth Low-Energy :
|
||||
|
||||
## Introduction
|
||||
|
||||
This page describes the BLE implementation and API built in this firmware.
|
||||
|
||||
---
|
||||
@@ -38,6 +40,7 @@ This page describes the BLE implementation and API built in this firmware.
|
||||
---
|
||||
|
||||
## BLE Connection
|
||||
|
||||
When starting, the firmware starts BLE advertising. It sends small messages that can be received by any *central* device in range. This allows the device to announce its presence to other devices.
|
||||
|
||||
A companion application (running on a PC, Raspberry Pi, smartphone, etc.) which receives this advertising packet can request a connection to the device. This connection procedure allows the 2 devices to negotiate communication parameters, security keys, etc.
|
||||
@@ -58,7 +61,8 @@ The documentation for BLE FS can be found here:
|
||||
---
|
||||
|
||||
## BLE UUIDs
|
||||
When possible, InfiniTime tries to implement BLE services defined by the BLE specification.
|
||||
|
||||
When possible, InfiniTime tries to implement BLE services defined by the BLE specification.
|
||||
|
||||
When the service does not exist in the BLE specification, InfiniTime implements custom services. Custom services are identified by a UUID, as are all BLE services. Here is how to define the UUID of custom services in InfiniTime:
|
||||
|
||||
@@ -70,34 +74,38 @@ When the service does not exist in the BLE specification, InfiniTime implements
|
||||
|
||||
The following custom services are implemented in InfiniTime:
|
||||
|
||||
- Since InfiniTime 0.8:
|
||||
* Music Service : 00000000-78fc-48fe-8e23-433b3a1942d0
|
||||
|
||||
- Since InfiniTime 0.8:
|
||||
|
||||
- Since InfiniTime 0.11:
|
||||
* [Navigation Service](NavigationService.md) : 00010000-78fc-48fe-8e23-433b3a1942d0
|
||||
- Music Service : `00000000-78fc-48fe-8e23-433b3a1942d0`
|
||||
|
||||
- Since InfiniTime 0.11:
|
||||
|
||||
- [Navigation Service](NavigationService.md) : `00010000-78fc-48fe-8e23-433b3a1942d0`
|
||||
|
||||
- Since InfiniTime 0.13
|
||||
* Call characteristic (extension to the Alert Notification Service): 00020001-78fc-48fe-8e23-433b3a1942d0
|
||||
|
||||
- Call characteristic (extension to the Alert Notification Service): `00020001-78fc-48fe-8e23-433b3a1942d0`
|
||||
|
||||
- Since InfiniTime 1.7:
|
||||
* [Motion Service](MotionService.md): 00030000-78fc-48fe-8e23-433b3a1942d0
|
||||
|
||||
- [Motion Service](MotionService.md): `00030000-78fc-48fe-8e23-433b3a1942d0`
|
||||
|
||||
- Since InfiniTime 1.8:
|
||||
* [Weather Service](/src/components/ble/weather/WeatherService.h): 00040000-78fc-48fe-8e23-433b3a1942d0
|
||||
|
||||
- [Weather Service](/src/components/ble/weather/WeatherService.h): `00040000-78fc-48fe-8e23-433b3a1942d0`
|
||||
|
||||
---
|
||||
|
||||
## BLE services
|
||||
|
||||
[List of standard BLE services](https://www.bluetooth.com/specifications/gatt/services/)
|
||||
|
||||
### CTS
|
||||
|
||||
[Current Time Service](https://www.bluetooth.com/wp-content/uploads/Sitecore-Media-Library/Gatt/Xml/Services/org.bluetooth.service.current_time.xml)
|
||||
|
||||
### ANS
|
||||
|
||||
[Alert Notification Service](https://www.bluetooth.com/wp-content/uploads/Sitecore-Media-Library/Gatt/Xml/Services/org.bluetooth.service.alert_notification.xml)
|
||||
|
||||

|
||||
|
Reference in New Issue
Block a user