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!
++