2022-09-06 12:19 PM
Hi I'm right now using the Nucleo-WB55RG as a Peripheral device to which the central (tablet) connects. I built most of my codebase with the CubeMX Code Generator – that means I defined all of my services and characteristics in the GUI choosing the BLE Server profile.
Now as requirements change I need to add the capability of acting as a central device simultaneously.
I know there is the option to choose "Router profile" as BLE Application type in CubeMX but that deletes all my settings for the server role and there is no option to define them again for the new dual topology.
So my question is: How can I extend the existing codebase by the new central device functionality but keep the possibility to regenerate code with cubeMX. What is the best approach?
I already tried to look into the P2P_Routeur example but it helped just a little.
Thanks for any help :folded_hands:
Greeting
Benjamin
Solved! Go to Solution.
2022-09-09 06:44 AM
Hello,
In order to support peripheral and central role on your device, I think the best way is to generate the server part with cubeMX and then adding the central part in your code in user section which aren't deleted after cubeMX regeneration. Unfortunately, only P2P Routeur is supported by CubeMX.
Best Regards
2022-09-09 06:44 AM
Hello,
In order to support peripheral and central role on your device, I think the best way is to generate the server part with cubeMX and then adding the central part in your code in user section which aren't deleted after cubeMX regeneration. Unfortunately, only P2P Routeur is supported by CubeMX.
Best Regards