2022-01-27 06:37 AM
Hi!
Thats my first time working with STM32_WPAN.
How to simply add battery state service to P2P_Server example?
I dont know how to add ANY service to any example. Code has many layers, and a lot of files. Too complicated for first attempt...
I just want simple tutorial step-by-step how to add services and characteristics.
2022-03-15 07:49 AM
Hello,
You can easily add battery service in P2P_Server example by using STM32CubeMX tool. The following wiki page explain how to build a project from scratch with this tool, we can look Services and Characterisitics part :
https://wiki.st.com/stm32mcu/wiki/Connectivity:STM32WB_BLE_STM32CubeMX
You can also look in AN5289 part 7.6.9, how to add a custom BLE service.
Best Regards