# Best way to trigger / schedule a reset from user code?

**URL:** <https://community.particle.io/t/best-way-to-trigger-schedule-a-reset-from-user-code/7794>\
**Category:** Firmware\
**Created:** [October 30, 2014, 1:12pm UTC](https://community.particle.io/t/best-way-to-trigger-schedule-a-reset-from-user-code/7794 "2014-10-30T13:12:12Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![psb777](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/psb777/32/934_2.png) [@psb777](https://community.particle.io/u/psb777)\
**Post date:** [October 30, 2014, 1:12pm UTC](https://community.particle.io/t/best-way-to-trigger-schedule-a-reset-from-user-code/7794/1 "2014-10-30T13:12:13Z")

</div>

Continuing the discussion from [Can the Spark Core trigger the Reset Pin?](https://community.spark.io/t/can-the-spark-core-trigger-the-reset-pin/2693):

I’ve read much of this lengthy thread but there are references to things changing over releases expected over coming months, and the thread is now several months old. Therefore, I am unsure as to the current state of the problem-solution. What is the best way to trigger a Reset from user code? A quick summary would likely be useful for others too. Anybody?

---

<div class="post-metadata">

**Author:** ![kennethlimcp](https://avatars.discourse-cdn.com/v4/letter/k/c0e974/32.png) [@kennethlimcp](https://community.particle.io/u/kennethlimcp)\
**Post date:** [October 30, 2014, 1:45pm UTC](https://community.particle.io/t/best-way-to-trigger-schedule-a-reset-from-user-code/7794/2 "2014-10-30T13:45:23Z")

</div>

`System.reset()` is what you are looking for though i have no idea why is not in the docs 😃

---

<div class="post-metadata">

**Author:** ![psb777](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/psb777/32/934_2.png) [@psb777](https://community.particle.io/u/psb777)\
**Post date:** [October 30, 2014, 1:53pm UTC](https://community.particle.io/t/best-way-to-trigger-schedule-a-reset-from-user-code/7794/3 "2014-10-30T13:53:38Z")

</div>

I’ve done all I can to rectify that.

---

<div class="post-metadata">

**Author:** ![kennethlimcp](https://avatars.discourse-cdn.com/v4/letter/k/c0e974/32.png) [@kennethlimcp](https://community.particle.io/u/kennethlimcp)\
**Post date:** [October 30, 2014, 1:57pm UTC](https://community.particle.io/t/best-way-to-trigger-schedule-a-reset-from-user-code/7794/4 "2014-10-30T13:57:50Z")

</div>

I’m not sure what this even means.

You asked a question and i provided the answer.

---

<div class="post-metadata">

**Author:** ![psb777](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/psb777/32/934_2.png) [@psb777](https://community.particle.io/u/psb777)\
**Post date:** [October 30, 2014, 2:05pm UTC](https://community.particle.io/t/best-way-to-trigger-schedule-a-reset-from-user-code/7794/5 "2014-10-30T14:05:20Z")

</div>

Thank you for the answer. I have updated the docs as best I can. Which is not very well at all, as I know nothing about this function, and I am not about to start reading the underlying code. That the documentation is incomplete is a REAL problem but it certainly keeps the forum alive, and that’s why we bought our Sparks, right? :-/ I’ve just spent half an hour reading the forum because System.reset() is not documented. So frustrating.

---

<div class="post-metadata">

**Author:** ![kennethlimcp](https://avatars.discourse-cdn.com/v4/letter/k/c0e974/32.png) [@kennethlimcp](https://community.particle.io/u/kennethlimcp)\
**Post date:** [October 30, 2014, 11:12pm UTC](https://community.particle.io/t/best-way-to-trigger-schedule-a-reset-from-user-code/7794/7 "2014-10-30T23:12:09Z")

</div>

This has been added to docs: [https://github.com/spark/docs/commit/a27921a8ad53a1ae894fa1554327a191d21a94af](https://github.com/spark/docs/commit/a27921a8ad53a1ae894fa1554327a191d21a94af)

Thanks!

---

<div class="post-metadata">

**Author:** ![psb777](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/psb777/32/934_2.png) [@psb777](https://community.particle.io/u/psb777)\
**Post date:** [October 30, 2014, 11:52pm UTC](https://community.particle.io/t/best-way-to-trigger-schedule-a-reset-from-user-code/7794/8 "2014-10-30T23:52:52Z")

</div>

That’s what I meant when I said I had done all I could to rectify the lack of documentation. Fortunately someone else has improved the contribution and added an example.
