# nRF52840 Hardware Watchdog Question

**URL:** <https://community.particle.io/t/nrf52840-hardware-watchdog-question/49197>\
**Category:** Hardware\
**Tags:** boron, argon, xenon\
**Created:** [April 19, 2019, 10:48am UTC](https://community.particle.io/t/nrf52840-hardware-watchdog-question/49197 "2019-04-19T10:48:28Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![thrmttnw](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/thrmttnw/32/13878_2.png) [@thrmttnw](https://community.particle.io/u/thrmttnw)\
**Post date:** [May 8, 2019, 9:49pm UTC](https://community.particle.io/t/nrf52840-hardware-watchdog-question/49197/8 "2019-05-08T21:49:03Z")

</div>

> [@How to force a handshake for OTA updates](https://community.particle.io/t/how-to-force-a-handshake-for-ota-updates/36836/32):
>
> Have you tried Particle.publish("spark/device/session/end", "", PRIVATE); Publishing this event will disconnect your session and force a new session to be created. Don’t call it too often, as it will use several K bytes of data to re-authenticate and create a new session, but it should work for force it.

Since reconnecting to the cloud has been the recurring problem for the Argon here, putting this in the code above, might be an effective alternative to an external power cycling watchdog:

```auto
    if (System.resetReason() == RESET_REASON_WATCHDOG) {
       Particle.publish("spark/device/session/end", "", PRIVATE);
    }

```

Now, if there is another reason why the watchdog would be activated repeatedly this could rake up the bill on a GSM device quickly though.

---

_[View the full topic](https://community.particle.io/t/nrf52840-hardware-watchdog-question/49197)._
