# Auto enter the listen mode

**URL:** <https://community.particle.io/t/auto-enter-the-listen-mode/31364>\
**Category:** Getting Started\
**Created:** [April 5, 2017, 3:01pm UTC](https://community.particle.io/t/auto-enter-the-listen-mode/31364 "2017-04-05T15:01:55Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![nrobinson2000](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/nrobinson2000/32/15624_2.png) [@nrobinson2000](https://community.particle.io/u/nrobinson2000)\
**Post date:** [April 6, 2017, 1:46pm UTC](https://community.particle.io/t/auto-enter-the-listen-mode/31364/6 "2017-04-06T13:46:22Z")

</div>

> [@Go into listening mode if no known networks are available](https://community.particle.io/t/go-into-listening-mode-if-no-known-networks-are-available/28701/7):
>
> Yes. Adding WiFi.disconnect() fixes it. #include "Particle.h" #include "softap\_http.h" SYSTEM\_MODE(MANUAL); SYSTEM\_THREAD(ENABLED); WiFiAccessPoint ap[5]; int found; /\* SoftAP Stuff Ommitted \*/ void setup() { WiFi.on(); found = WiFi.getCredentials(ap, 5); WiFi.connect(); if(!waitFor(WiFi.ready, found \* 15000)) { WiFi.disconnect(); WiFi.listen(); } else { // either procede with your app c…

---

_[View the full topic](https://community.particle.io/t/auto-enter-the-listen-mode/31364)._
