mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 03:00:34 +03:00
docs(ble): add flow diagrams to bluedroid BLE examples
(cherry picked from commit 051077835c)
Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
This commit is contained in:
@@ -5,6 +5,52 @@
|
||||
|
||||
This example is to test the Bluetooth compatibility and mobile phones.
|
||||
|
||||
## Flow Diagram
|
||||
|
||||
```
|
||||
┌──────────────────┐ ┌──────────────────┐
|
||||
│ ESP32 BLE │ │ Mobile Phone │
|
||||
│ (Compatibility) │ │ (LightBlue App) │
|
||||
└────────┬─────────┘ └────────┬─────────┘
|
||||
│ │
|
||||
│ 1. Initialize BLE │
|
||||
│ 2. Create GATT Services │
|
||||
│ 3. Start Advertising │
|
||||
│ │
|
||||
│ ─────────── Test Scenarios ─────────── │
|
||||
│ │
|
||||
│ Scan & Discover │
|
||||
│ <════════════════════════════════════════════│
|
||||
│ │
|
||||
│ Connection Request │
|
||||
│ <════════════════════════════════════════════│
|
||||
│ │
|
||||
│ Service Discovery │
|
||||
│ <════════════════════════════════════════════│
|
||||
│ │
|
||||
│ Read Characteristic │
|
||||
│ <════════════════════════════════════════════│
|
||||
│ Read Response │
|
||||
│ ════════════════════════════════════════════>│
|
||||
│ │
|
||||
│ Write Characteristic │
|
||||
│ <════════════════════════════════════════════│
|
||||
│ Write Confirmation │
|
||||
│ ════════════════════════════════════════════>│
|
||||
│ │
|
||||
│ Enable Notification │
|
||||
│ <════════════════════════════════════════════│
|
||||
│ Notification Data │
|
||||
│ ════════════════════════════════════════════>│
|
||||
│ │
|
||||
│ Disconnection │
|
||||
│ <═══════════════════════════════════════════>│
|
||||
│ │
|
||||
┌────────┴─────────┐ ┌────────┴─────────┐
|
||||
│ ESP32 BLE │ │ Mobile Phone │
|
||||
└──────────────────┘ └──────────────────┘
|
||||
```
|
||||
|
||||
## How to Use Example
|
||||
|
||||
Before project configuration and build, be sure to set the correct chip target using:
|
||||
|
||||
Reference in New Issue
Block a user