PAWR sync gets lost when running it in background with other tasks

Hi

I'm using the pawr_sync and pawr_adv samples as references in my project. I have implemented them so that the sync node scans for new syncs for n secs at a specified interval and then goes back to doing other tasks. Also, the adv node advertises for m secs at an interval only if it is not in sync with a sync_node.

Sync gets established and the request and response indications are working correctly till I start another bigger task, in my case I initialize BG95 module and start preparing it for network operations to connect and send tcp's.

When this happens the sync gets lost forever, and I get the following log on pawr_adv node

 Failed to receive indication: subevent 0

Is this expected behaviour??

I hope the pawr sync,response, request happens in a separate thread??If not is there config to run it in separate thread or with higher priority??

What would probably cause the sync_node to get lost??

Related