2025-07-17 6:04 AM - last edited on 2025-07-17 6:35 AM by Andrew Neil
Hello everyone,
I’m working on a BLE project using two STM32WB55 boards.
My goal is to create a connection between them without using the ST BLE Toolbox App.
One board is configured as a Custom Server (Peripheral), and the other as a P2P Client (Central).
I want to ensure that I am properly connected to my server and receiving notifications.
But I am not sure about how using:
Start scanning
Identify the correct server
Connect
Discover services
Enable notifications
Receive data
Please without saying follow the P2p example, because I didn't catch it
2025-07-17 7:10 AM
Hello,
have you read this Wiki page?
It provides more information regarding P2P application. It's meant for WBA series, however the structure is similar to WB series.
STM32WBA Bluetooth® LE – Peer 2 Peer Applications - stm32mcu
I also recommend reading this document below.
Guidelines for Bluetooth® LE stack programming on STM32WB/STM32WBA MCUs - Programming manual
If you have any other question, please don't hesitate to ask.
Best regards,
Filip Kremen
2025-07-17 7:48 AM
My objective is to send some sensor data from an MCU to other one, so what is the best solution for me, and I didn't catch the BLE_p2pClient example, so if there is any other clear tutorial or reference to follow ? (I reached to send the data to ST Toolbox App)
2025-07-18 1:33 AM
Hello,
I recommend reading a readme file in the BLE_p2pClient example for overview.
Also, if you have a look at p2p_client_app.c file you can find there Button_Trigger_Received() function which writes to a characteristic on server side, and you can toggle LED based on this value. You can also add your own characteristic to the server for your own data.
Section 7 in the document also provides additional information for building BLE application.
How to build wireless applications with STM32WB MCUs - Application note
Best regards,
Filip Kremen