This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Advertising timeout event catch with SDK16

Hi everyonoe,

I would like to set a timeout for advertising, and catch this event. So I have

According to ble_gap.h :

  uint16_t                 duration;                /**< Advertising duration in 10 ms units. When timeout is reached,
                                                         an event of type @ref BLE_GAP_EVT_ADV_SET_TERMINATED is raised.

So in the handler I registered with NRF_SDH_BLE_OBSERVER, I have :

My issue is : after 5s, I don't have "Timeout!" printed in my console. But if I set an advertising interval greater than 5s, "Timeout!" is printed immediately at boot, several time, until it reboots. The other events works well (connection, deconnection...)

Is there something I missed?

Thank you for your help!

++

Parents
  • Hello, thank you for your help

    You are right about the 4s, the comment is wrong.

    In between, I found another solution with external timers, but I'll eventually test the following :

    As you suggest.

    I didn't though my conversion could be the issue there, your advice is relevant, thank you.

Reply
  • Hello, thank you for your help

    You are right about the 4s, the comment is wrong.

    In between, I found another solution with external timers, but I'll eventually test the following :

    As you suggest.

    I didn't though my conversion could be the issue there, your advice is relevant, thank you.

Children
No Data