2025-07-30 6:38 AM
Hello ST Community,
I'm working on a Web Bluetooth project using the STM32WB55 and the ST Web Bluetooth App.
So far, I’ve successfully connected to a single BLE device (e.g., MYDEVICE00) using a custom BLE service and characteristic. However, I would like to connect to multiple STM32WB devices at the same time, and retrieve characteristics from each device concurrently, because I would to send various sensors data at the same time.
=>What I've Done:
I’m using the default Header.js logic, which currently uses a single myDevice object.
I tried modifying it to use a list of devices (connectedDevices), but I quickly realized navigator.bluetooth.requestDevice() allows selecting only one device per user gesture.
I also tried filtering automatically for 'MYDEVICE00' in code to avoid repeated user interaction, but Web Bluetooth requires explicit user gestures for each connection request.
=>What I Need:
A proper approach to connect multiple STM32WB devices one by one and store each device's GATT services/characteristics separately.
Advice on how to adapt the ST Web Bluetooth App to support this kind of concurrent multi-device communication.
=> Has anyone here implemented multi-device Web Bluetooth support with STM32WB? I'd really appreciate example code or guidance on structuring the state management and UI.