This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Reconnect using directed advertisement cc2541

Hi all,

Can anyone please suggest how can i use directed advertisement? In my application i need to do analog processing during which connection gets disconnected. What i want is to establish re-connection in as less time as it can. I have read about directed advertisement which takes much lesser time to connect to the central. For the first time i will be using undirected advertisement and when device connects with peripheral, i will store the MAC address of central and later will use directed advertisement for faster re-connection after i have done my analog processing.

So can anyone please tell

1)how can i implement this? Which function do i need to call for this?

2)Is there any way to know peripheral has successfully connected to the central?

Thanks

  • Hi,

    I don't have any idea for your first query. But for second, you will get a peripheralStateNotificationCallback when the state of the peripheral device changes. And when peripheral device connects to the central device the state will change from GAPROLE_ADVERTISING to GAPROLE_CONNECTED. Using this you can detect that the peripheral device is successfully connected to the central device.

    Hope this helps!

    Thanks,

    Dhaval

    Note: You may like to click on 'Verify Answer'. if this has answered your question.

  • Hi Dhaval,
    Thanks for your valuable suggestion. This is going to help me as an indication to re-start communication with the central device.
    Waiting for reply to my first question. will see if someone can help me out.