Then it would also be good to get a cross-reference to any of the functions that could potentially "harm" the functionality (e.g. WiFi.off(), Mesh.off(), System.sleep(), ...) and samples how to deal with them.
See this discussion
I also tried WITH_ACK (instead of delay()) to prevent Mesh.off() from cutting the connection before the event was sent, but that didn't help.
How would one go about this?