This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software:
Hi,
It should work. You can look at _SlNonOsHandleSpawnTask() and _SlNonOsSpawn(). The first one should be called with the sl_Task() and the second one whenever there is an interrupt coming from the lower layer. I guess you have a while(forever) on the connection events, does it ever get out?
Shlomi
Hi,
thank you for reply. sl_Task() already called in while loop and your saying to include _SlNonOsHandlerSpawnTask() also in while loop what i understood is correct?. _SlNonOsSpawn() should be called inside event handler?. Waiting for your kind reply.
no, you should not call it. Just elaborated the procedure.
the sl_Task() does everything under the hood.
do you get out of the while loop()?
no it is staying in while loop only. handler is not getting called while connect event or disconnect event
so maybe you are not getting connected.
you mentioned that you get connected, where do you see it?
are you using one of the nortos example from the SDK or your own code?
can you use power_measurement example?
you can see the piece of code there that does this.
you need to make sure the while loop is not called from an interrupt context.