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.

How to forcibly disconnect or decrease value of timeout?



Hi, all:

    In my application, central connect peripheral and write some data, then disconnect it immediately.

    While, if the RF signal is too weak, the peripheral will can't rcv the disconnect cmd, and the disconnect operation will failed until timeout(about 20s).

    Is there some method to forcibly disconnect?

    I means the central or peripheral is no need to wait for disconnect cmd reply, just return to idle.

    If it is impossible, how to decrease the value of timeout? It is 20s now, I hope decrease to <1s. I try to change some timeout macro, but has no affection.