cancel
Showing results for 
Search instead for 
Did you mean: 

How to simple add battery service to P2P_Server example?

BPrac.1
Associate II

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.

1 REPLY 1
Remy ISSALYS
ST Employee

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