2024-04-08 10:44 AM
Hello ....
I have an apk that seems to lose comms with a server. We have not been able to make it periodic or obvious as to the reason. We would like the server to timeout after 30 seconds of not receiving read/write rqsts from the client and force it's state to HCI_DISCONNECTION_COMPLETE_EVT_CODE which in turn will put it back into advertising mode.
Can someone tell me what function can I call to set the parameter for the function SVCCTL_App_Notification(void *p_Pckt) which is a registered task in the sequencer? I would like to set the state and then I will call UTIL_SEQ_SetTask function
Thanks
2024-05-23 10:54 AM
Hello @SWenn.1
For such a use case, you would typically need to create a timer that starts counting upon the last read/write request from the client. If the timer reaches 30 seconds without any new read/write requests, you would then programmatically trigger a disconnection.
Best Regards.
STTwo-32
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2024-05-24 11:34 AM
Thank you for the response...yes but the question is in the details of exactly what to do to "programmatically trigger a disconnect"?
2024-05-28 08:58 AM
Since the exact function to set such a parameter is not available, I cannot give you a specific function call to achieve this. If the functionality is similar to the one used for the notification measurements timer, you would need to:
Best Reagrds.
STTwo-32
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.