CC2340R5: How to do GAP role change post bonding?

Part Number: CC2340R5

Tool/software:

Hi Forum,

 I am working on project where i need to change GAP role post bonding process. Let me know is this doable, if yes, how? Please share some reference example, APIs and documentation.

Regards

Vaibhav

  • Hello Vaibhav,

    Thank you for reaching out! If I'm understanding you correctly, you would like to change the device role, for example from peripheral to central? 

    If that's the case, unfortunately, that is not possible, as the GAP role requires some initializations that is done during startup. What you could alternatively is set the device to be both peripheral and central. 

    I hope this answers your question! 

    Best Regards,

    Tarek D

  • Hi Tarek,

     Can we use a persistent storage +  shutdown (+ wakeup by external trigger) to make this work? we trying to go with single role because of RAM constraints.

    Thanks

    Vaibhav

  • Hello Vaibhav,

    Unfortunately, this is not possible, as there are a lot of initializations that are needed, which only happen at start up.

    Best Regards,

    Tarek D