# OneWire bus functionality quits working when Photon WiFi is turned off

**URL:** <https://community.particle.io/t/onewire-bus-functionality-quits-working-when-photon-wifi-is-turned-off/54797>\
**Category:** Libraries\
**Tags:** photon\
**Created:** [February 20, 2020, 12:23am UTC](https://community.particle.io/t/onewire-bus-functionality-quits-working-when-photon-wifi-is-turned-off/54797 "2020-02-20T00:23:21Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![friedl\_1977](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/friedl_1977/32/22930_2.png) [@friedl\_1977](https://community.particle.io/u/friedl_1977)\
**Post date:** [February 21, 2020, 5:12am UTC](https://community.particle.io/t/onewire-bus-functionality-quits-working-when-photon-wifi-is-turned-off/54797/11 "2020-02-21T05:12:13Z")

</div>

HI @joel_e_b

Just my 5 cents worth;

Have you had a look at the docs about enabling [System\_Thread](https://docs.particle.io/reference/device-os/firmware/photon/#system-thread)? Or maybe this post by @rickkas7:

[Particle threads tutorial](https://community.particle.io/t/particle-threads-tutorial/41362)

I worked with Threads once and reverted back to normal mode very quickly, haha. It seems do work well where ‘multiple threads’ are required but it does come at a price. I tried using it in a voltage/current sensor device and even though it had the desired effect, it also come with some unwanted side effects 😉 In short, for me it was not as simple as adding SYSTEM\_THREAD\_ENABLE, I had to rework code quite drastically and could not manage to resolve the unwanted behaviour, so reverted back 😆

Having said this, my C++ is shaky at best, but I have heard about some more seasoned programmers finding’s it not so easy as it seems “the way things work” changes drastically. I will leave you in the capable hands of Scruff and the rest of the forum, SYSTEM\_THRRAD\_ENABLE is over my head.

Hope you resolve this.  
Regards Friedl.

---

_[View the full topic](https://community.particle.io/t/onewire-bus-functionality-quits-working-when-photon-wifi-is-turned-off/54797)._
