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 Reply Children
Related