# Will the Xenons and Argon continue to execute my program if Wifi drops out for days on end?

**URL:** <https://community.particle.io/t/will-the-xenons-and-argon-continue-to-execute-my-program-if-wifi-drops-out-for-days-on-end/47096>\
**Category:** BLE // NFC\
**Tags:** argon, xenon\
**Created:** [January 18, 2019, 12:04am UTC](https://community.particle.io/t/will-the-xenons-and-argon-continue-to-execute-my-program-if-wifi-drops-out-for-days-on-end/47096 "2019-01-18T00:04:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![TeraBull](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/terabull/32/19717_2.png) [@TeraBull](https://community.particle.io/u/TeraBull)\
**Post date:** [January 18, 2019, 12:04am UTC](https://community.particle.io/t/will-the-xenons-and-argon-continue-to-execute-my-program-if-wifi-drops-out-for-days-on-end/47096/1 "2019-01-18T00:04:27Z")

</div>

I don’t have code to share yet.

I was wondering if I setup my program at my house with the argon and xenon; if it will run without wifi at my relatives house. I want to make a pool controller and they have 1Mb internet. I am pretty sure it would be better to not rely on it at all.

My thought is I would program and test everything here, on my pool, then take it down there and let it run.

I appreciate any feedback.

Thanks

---

<div class="post-metadata">

**Author:** ![rickkas7](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/rickkas7/32/8681_2.png) [@rickkas7](https://community.particle.io/u/rickkas7)\
**Post date:** [January 18, 2019, 12:12am UTC](https://community.particle.io/t/will-the-xenons-and-argon-continue-to-execute-my-program-if-wifi-drops-out-for-days-on-end/47096/2 "2019-01-18T00:12:04Z")

</div>

Yes, if you change from the default mode. The easiest solution is to use:

```auto
SYSTEM_THREAD(ENABLED);

```

which allows your code to run even when there is no cloud connectivity. There are a few caveats, most importantly you should [avoid calling Particle.publish when not cloud connected](https://community.particle.io/t/particle-publish-and-blocking/42022) to avoid blocking for several minutes in certain cases.

---

<div class="post-metadata">

**Author:** ![TeraBull](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/terabull/32/19717_2.png) [@TeraBull](https://community.particle.io/u/TeraBull)\
**Post date:** [January 18, 2019, 12:14am UTC](https://community.particle.io/t/will-the-xenons-and-argon-continue-to-execute-my-program-if-wifi-drops-out-for-days-on-end/47096/3 "2019-01-18T00:14:08Z")

</div>

10-4 Thanks. I had seen people talk about using SYSTEM\_THREAD on here before. I get to become a little more familiar with it now.

Thanks A lot!
