Skip to main content
Associate II
Jan 27, 2022 2:37 PM UTC
Question

How to simple add battery service to P2P_Server example?

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.

This topic has been closed for replies.

1 reply

Remy ISSALYS
ST Technical Moderator
Mar 15, 2022 2:49 PM UTC

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