I have a a blink task which repeatedly blinks using a while loop. I would like to cancel the task once wifi has connected. I couldn't work out how to cancel the running task (other than setting a global static variable from the wifi task and then testing this variable from within the blink while loop). Could you please give an example of how to safely cancel a running task? Many Thanks.
I have a a blink task which repeatedly blinks using a while loop. I would like to cancel the task once wifi has connected. I couldn't work out how to cancel the running task (other than setting a global static variable from the wifi task and then testing this variable from within the blink while loop). Could you please give an example of how to safely cancel a running task? Many Thanks.