- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello.
I use the following function to get the credentials needed to connect to the router..
Is there a way to stop the processing of this function from the outside?
function: wiced_wps_enrollee()
Thank you.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
You could use semaphores to achieve this. You could maybe set a semaphore in your 'external function' and once this semaphore is set, you could modify the thread running wiced_wps_enrollee () to stop. Once stopped, you could maybe continue monitoring your 'external function' to reset the semaphore and start the wiced_wps_enrollee () function again if required.
Thanks and Regards
Murali
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Could you elaborate a bit more on what you mean by "Is there a way to stop the processing of this function from the outside?"
By outside, do you mean a hardware interrupt or some condition which needs to stop the processing?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Thank you for your reply.
The expression was ambiguous.
"External" is a function of a thread other than the thread that started wiced_wps_enrollee ()..
Is there a way?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
You could use semaphores to achieve this. You could maybe set a semaphore in your 'external function' and once this semaphore is set, you could modify the thread running wiced_wps_enrollee () to stop. Once stopped, you could maybe continue monitoring your 'external function' to reset the semaphore and start the wiced_wps_enrollee () function again if required.
Thanks and Regards
Murali
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Thank you very much for your answer.
I'll try.
thank you.