Boron - Seemingly random device reset - How to best capture the reason

Just a quick update… I’ve been successfully running with this the last 24 hours with zero pseudo resets as I did earlier. This is across 8 devices publishing every 5 minutes. I tested this both with devices sleeping/waking as well as devices that stay awake.

The pseudo reset conditions and duplicate publishing of events is what started this whole discussion and then going down the rabbit hole of not using threading. At this time, I no longer am seeing that behavior thankfully. Just not 100% sure why. I may need to go back to gitHub and look at the specific change of what I have now vs what I was running several days ago. Only thing that jumps out at me is changing log level from LOG_LEVEL_INFO --> LOG_LEVEL_ALL but I’d be surprised if that was it.

SerialLogHandler logHandler(LOG_LEVEL_ALL);
SYSTEM_THREAD(ENABLED);
SYSTEM_MODE(MANUAL);
…
publishQueue.publish(“Stat”, jw.getBuffer(), 60, PRIVATE, WITH_ACK);

Since I am no longer seeing the issue, I think I’m moving on to the next area of focus, leveraging different sleep modes for different scenarios. If/when this behavior comes back I’ll let you know. Thanks everyone for the guidance!