BLE multi_connection Example
Source code path: example/ble/multi_connection
Supported Platforms
All platforms
Overview
This example demonstrates BLE multi-connection functionality based on GAP central and peripheral roles and GATT server on this platform.
Usage Instructions
When operating as a slave device, the board automatically starts advertising upon boot and can be connected via BLE apps on mobile phones.
After connection, the board automatically restarts advertising and can accept connections from other mobile devices.
It can also operate as a master device, searching for and connecting to other slave devices through finsh commands.
Hardware Requirements
Before running this example, prepare:
One development board supported by this example (Supported Platforms).
Mobile device.
Compilation and Flashing
Switch to the example project/common directory and run the scons command to compile:
> scons --board=eh-lb525 -j8
Switch to the example project/common/build_xx
directory and run uart_download.bat
, then select the port as prompted to download:
$ ./uart_download.bat
Uart Download
please input the serial port num:5
For detailed compilation and download steps, please refer to the Quick Start Guide.
Expected Results
After the example starts:
It can be discovered and connected by multiple different mobile phones via BLE apps, allowing corresponding GATT characteristic value read/write operations.
It can actively connect to other devices
Troubleshooting
Reference Documentation
Update History
Version |
Date |
Release Notes |
---|---|---|
0.0.1 |
02/2025 |
Initial version |