This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Publish timeout handler of a model called during opcode handling of a message in the same model (or vice versa)

Hi,

This is actually a follow-up to my previous question here: devzone.nordicsemi.com/.../publish-timeout-handler-of-one-model-called-during-publish-timeout-handler-of-another-model.

Say I have a model with a publish timeout configured. Is it in any way possible that during this publish timeout handler, the opcode handler of incoming message will be called? And if not, could it happen vice versa (i.e. publish timeout handler called during opcode handling in the same model)? Both handlers access a neighbor list in my application, incoming messages are added to the list in the opcode handler and in the publish timeout handler, the current contents of the list are published (i.e. transmitted on the air) and the list is freed. So I really need to be sure that the handlers will not preempt each other. Based on the answer to my previous question, I believe this will never be the case here as well, but I just wanted to be sure.

Thanks!

Kind regards,

Mathias

Related