Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Photon remains in listening mode after WiFi.listen(false) #743

Closed
airbornemint opened this issue Nov 23, 2015 · 3 comments

Comments

@airbornemint
Copy link

commented Nov 23, 2015

My code (which I haven't tried boiling down to a minimal example yet) is running on a Photon with SYSTEM_THREAD(ENABLED); and firmware version 0.4.7 installed.

I call WiFi.listen(true) to put the Photon into listening mode, and it does so correctly (on-board LED switches to blue flash, and Photon WiFi AP shows up on my nearby iPhone).

I later call WiFi.listen(false) to take the Photon out of listening mode, but nothing changes.

Is there a known problem with WiFi.listen(false) not working?

@BracWebb

This comment has been minimized.

Copy link

commented Nov 23, 2015

I have had that same issue.

I also had an issue where waitUntil(WiFi.hasCredentials); would move on immediately tho WiFi.hasCredentials was false. I was trying to do the following:

WiFi.listen(TRUE);
waitUntil(WiFi.hasCredentials);

before moving on in multithread. I actually still wanted to block the application.

I hacked around all that with:

WiFi.listen(TRUE);
waitFor(WiFi.ready, firstWiFiCredentialsTimeout);
System.reset();

(added a timeout, but main point being that I had to wait for WiFi.ready which can only occur once the WiFi.hasCredentials)

@pomplesiegel

This comment has been minimized.

Copy link

commented Nov 24, 2015

I observed the same issue a few days ago. @airbornemint, Thanks for filing this.

@m-mcgowan m-mcgowan added this to the 0.4.9 milestone Dec 14, 2015

@m-mcgowan

This comment has been minimized.

Copy link
Contributor

commented Dec 23, 2015

@sergeuz is looking into this! thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.