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

Terminate client connection after a certain time

Hi,

I have an issue with a situation where a client remains connected when not needed anymore, I need to terminate any connection that has been active too long, for example one minute.
I am not so good in C, so I have issues with some details of the operation how to do this.

Is there a direct timeout in the softdevice that can be set, which would automatically terminate any connection that has been active past the limit?

If not and it needs to be done manually, would there be an example code somewhere for doing this?
I tried searching however could not find something that would work.
I can make a timer, I just need an example how to make the actual termination.

Thank you!

Parents
  • Hi Marcus, I am sorry for the late reply, but our support team have been shorthanded during the holiday season. 

    There is not a timer available in the SoftDevice, so you are correct in that this has to be done manually, and it seems you have found the answer yourself.

    Kind regards and a happy new year,

    Simon

  • Hi Simon,

    Thank you, I wish you a happy new year also!

    BR,
    Marcus

Reply Children
No Data