# Photon Not Using Wifi Connection

**URL:** <https://community.particle.io/t/photon-not-using-wifi-connection/38250>\
**Category:** Troubleshooting\
**Created:** [December 19, 2017, 9:16pm UTC](https://community.particle.io/t/photon-not-using-wifi-connection/38250 "2017-12-19T21:16:07Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![msfarmer](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/msfarmer/32/16232_2.png) [@msfarmer](https://community.particle.io/u/msfarmer)\
**Post date:** [December 19, 2017, 9:16pm UTC](https://community.particle.io/t/photon-not-using-wifi-connection/38250/1 "2017-12-19T21:16:07Z")

</div>

I just the Photon and the Neopixel ring designed to fit with it. I have three of them. I have soldered the Photons and the boards and I was initially able to setup the wifi and flash codes easily. Now, however, the Photons constantly breathe green. I can watch them breathe green, then flash cyan and start breathing cyan for about a minute, until it goes back to green. The console shows them going online for a while, then offline. The cyan breathing period is not even long enough to flash a code. If I hit reset it will do the same, connect and breathe cyan for a minute, then go back to breathing green. They have been using the same wifi network and in the same physical location for the past few days. I have gone through the app and web to setup the devices a few times now.

Do I just have a bad wifi setup or is there something I can do to keep the connection?

---

<div class="post-metadata">

**Author:** ![mikemoy](https://avatars.discourse-cdn.com/v4/letter/m/34f0e0/32.png) [@mikemoy](https://community.particle.io/u/mikemoy)\
**Post date:** [December 19, 2017, 9:36pm UTC](https://community.particle.io/t/photon-not-using-wifi-connection/38250/2 "2017-12-19T21:36:41Z")

</div>

Try uploading one of the demo apps if you can get it to connect long enough. Or use CLI to upload it.  
Let that run for while to ensure its not something in your code messing with it.

---

<div class="post-metadata">

**Author:** ![Postler](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/postler/32/13693_2.png) [@Postler](https://community.particle.io/u/Postler)\
**Post date:** [December 19, 2017, 10:18pm UTC](https://community.particle.io/t/photon-not-using-wifi-connection/38250/3 "2017-12-19T22:18:34Z")

</div>

Give

[particle device doctor](https://docs.particle.io/reference/cli/#particle-device-doctor)

in CLI a try

---

<div class="post-metadata">

**Author:** ![msfarmer](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/msfarmer/32/16232_2.png) [@msfarmer](https://community.particle.io/u/msfarmer)\
**Post date:** [December 19, 2017, 10:30pm UTC](https://community.particle.io/t/photon-not-using-wifi-connection/38250/4 "2017-12-19T22:30:30Z")

</div>

Thanks. I flashed Tinker using CLI and they worked fine! So it’s the code. I am using the code from this Hackster project: [https://www.hackster.io/team-filimin/networked-rgb-wi-fi-decorative-touch-lights-a6c9c8](https://www.hackster.io/team-filimin/networked-rgb-wi-fi-decorative-touch-lights-a6c9c8)

---

<div class="post-metadata">

**Author:** ![Postler](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/postler/32/13693_2.png) [@Postler](https://community.particle.io/u/Postler)\
**Post date:** [December 19, 2017, 10:47pm UTC](https://community.particle.io/t/photon-not-using-wifi-connection/38250/5 "2017-12-19T22:47:35Z")

</div>

Great that it worked.  
This project is an advanced project: if you are interested in beginner information, I recommend [mine projects](http://www.hackster.io/ingo-lohs) for review.

---

<div class="post-metadata">

**Author:** ![msfarmer](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/msfarmer/32/16232_2.png) [@msfarmer](https://community.particle.io/u/msfarmer)\
**Post date:** [December 19, 2017, 11:23pm UTC](https://community.particle.io/t/photon-not-using-wifi-connection/38250/6 "2017-12-19T23:23:50Z")

</div>

Thanks for the projects link! Yes I’m way over my head with this one.

---

<div class="post-metadata">

**Author:** ![ScruffR](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/scruffr/32/6952_2.png) [@ScruffR](https://community.particle.io/u/ScruffR)\
**Post date:** [December 20, 2017, 6:39am UTC](https://community.particle.io/t/photon-not-using-wifi-connection/38250/8 "2017-12-20T06:39:37Z")

</div>

The issue you are seeing is most likely due to the code blocking somewhere for several seconds.  
One workaround is adding `SYSTEM_THREAD(ENABLED)` to the top of the project. But that doesn’t solve the underlying issue.

Another thing is that this project uses some deprecated syntax (e.g. `Spark.variable(name, var, type)`) which should be updated to the more recent version (e.g. `Particle.variable(name, var)`)

Furthermore there is always Safe Mode (breathing magenta) to enable OTA updates when the application code prevents it for some reason or other.
