-
Notifications
You must be signed in to change notification settings - Fork 2k
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
WiFiManager Captive portal not showing up on my iOS devices #296
Comments
behaviour confirmed but it happens randomly. |
click ap (i) ℹ️ , click forget network. If it thinks the password is saved, it won't redirect to the captiveportal sometimes. Using a random ap name helps sometimes. |
Got this issue today. Forgetting the wifi network is enough, next try worked. Occured on some weird hostel connection, should be a bug from apple. |
I'm seeing a similar problem - Mac OS (Sierra) says "The Wi-Fi network "GlowOrb-1234-5678" (the name I gave it) could not be joined". Sometimes it works. Other times not. Debug is not showing any problem: |
@andysc have you tried changing the SSID to simply GlowOrb ? |
Was the device previusly joined or had credentials already to a non existant ap? Try pr #313 |
I confirm that with Mac and iOS it is very difficult to connect. It tends to immediately revert to the wifi it was connected to in the first place. In some cases i had to switch off the home router to make the ESP the only wifi and get the connection. Also, in many cases i have to manually open a browser and go to 192.168.4.1 otherwise the config page does not come up... |
@pieman64 no - was there a reason for suggesting that? (length, characters)? |
@tablatronix yes, it was previously programmed (using normal ESP wifi stuff) to connect to a different AP |
changed AP to GlowOrb ... it didn't show up in the list of available access points until I turned wifi off then on, then it saw it. Spent a long time trying to connect to it (with the wifi logo going up and down)... before finally connecting, and doing the captive portal thing properly. |
It also seems that once it has failed to find the AP that was configured (i.e. if you turn the access point off), and it goes into config mode, if you don't set up a new association, it forgets the old AP settings and makes hardly any attempt to connect to them if you power cycle the ESP. |
*WM: AutoConnect ... note the connection result 0, which comes up immediately. Is there a way to find out what AP the ESP is hunting for? |
WiFi.printDiag(Serial) |
aha :) thanks - I also found: If you get to the captive portal landing page and click Configure WiFi - that seems to be the point it erases the old SSID and password. |
OK - so my point about network failures was not valid... as long as you don't go into the configuration page, your settings remain intact. |
I've gone back to the longer SSID now (GlowOrb-1234-5678) and it seems to connect after a couple of tries, so I don't think the length was significant. SSIDs should be OK up to 32 chars, according to the spec. Whether all the ESP and library buffers are up to that, I don't know :) |
There are several known bugs these are both known. I cannot recall the loss of credentials one at this time. |
@tablatronix OK - thanks - the loss of credentials is not as I suggested - it's only if you go to the wifi config page but don't select or save any new credentials. I think that is a bug, but not as bad as I thought ;) Thanks for your help! |
OK, I've found the problem with the wifi credentials getting deleted when you go into the Wifi config page... WiFi.disconnect() deletes the currently stored SSID and password. Now, whether the correct fix is to look at other options before calling disconnect, or whether calling disconnect is the wrong thing to do at all, I don't know, but I commented out the call to WiFi.disconnect(false), and it all works fine :) Now the credentials don't get wiped if you go to the AP config page but don't save a new AP. I'll leave others to work out the best fix, but I'm happy with this for now :) |
BTW, that bit in connectWifi, where it says
is greatly improved by adding this bit of code:
Sorry, I don't yet know how to do a pull request, so someone else will have to put it in if you want this ;) |
I've made 3 small changes, which seem to help a lot...
This has made connecting to the AP and bringing up the captive portal far more reliable on a Mac, and also made it more reliable at connecting to the new network when you've configured it. |
You should:
|
@MarcFinns thank you :) |
HI Andy, thanks, if you try to make the pull request, make sure you start and submit it to the development branch
cheers
alex
… On 3 Apr 2017, at 14:26, andysc ***@***.***> wrote:
@MarcFinns <https:/MarcFinns> thank you :)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub <#296 (comment)>, or mute the thread <https:/notifications/unsubscribe-auth/AC2FkIk9vkEZ57ZZYuO6qVFdZ8ZKm4aRks5rsNdJgaJpZM4LlJg_>.
|
@tzapu-good to hear you are still evolving it! |
GitHub n00b time again - sorry...
Not sure what to do next. I think it's a
but I'm getting
maybe git push needs some parameters? |
Easiest way is to drag and drop the files via website... |
@MarcFinns I think your 3 step instructions missed out "click fork"...? |
You are authorised in your own rep!! (Not the original that you cloned) |
You can find a lot of documentation online about the github workflow. I like this one. |
Added changes from tzapu/WiFiManager#296
Hi, I am trying to make an IoT mood lamp with 8266. I am using Firebase server so that I could control the device from anywhere. Also, I have created an iOS app to control(turn on/off the lights) the device.
The problem I am having is this:
Say, I need to connect my device to a new network(wifi) but the device is not configured to the new network. In this case, I could just simply update the new network(SSID, PASSWORD) to Arduino IDE. But I am doing this project for commercial purposes and I want to provide simple and easy service to my customers. So I just want to connect any new network using my iOS app or in a simple way (without any coding). WiFiManager would make this possible right?
I was so glad that I found your code it was a real time saver for me.
The problem I am having is that even when I run the Arduino IDE code without any errors, I can't get the captive portal open in my iPhone and Mac Pro.
I guess I am suppose to generate a wifi network on my iOS device (ESP + ChipID) However, I don't see it. How do I get the view "How it looks" in the README.md file?
I've been trying to solve this issue for the past few days but still haven't found the right answer.
Please let me know if I am misunderstanding anything. Any comments would be very appreciate it.
Thanks,
Ki
The text was updated successfully, but these errors were encountered: