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

What does it mean to connect to access point in blocking mode? #1

Open
bastulli opened this issue May 5, 2018 · 1 comment
Open
Assignees
Labels
question Further information is requested

Comments

@bastulli
Copy link

bastulli commented May 5, 2018

Also, do I enter my access-point's ssid and password in the esp.ConnectAP?
ex...
esp.ConnectAP("accesspointname", "password", false);

Currently getting failed to acquire IP via uart over serial.

Initialized Uart...
Initialized ESP, connecting to AP...Failed to acquire IP!

Thanks for making this for the TivaC tm4c!

@vedranMv vedranMv self-assigned this May 6, 2018
@vedranMv
Copy link
Owner

vedranMv commented May 6, 2018

Hello and thank you for your interest in this library :)

  1. Blocking mode means that the connect function returns only when it has received "OK" or "ERROR" status.
  2. Yes, you call ConnectAP exactly the way you wrote it. There's an example in main.cpp file.

I can only see two possible reason for this problem. One is calling ConnectAP function in non-blocking mode and not giving it enough time to get IP. Second reason is a stretch but might have something to do with your AP name/password. If you have any special characters make sure you're escaping the correctly.

I would like to look a bit more into this issue if you are willing to provide more information. In the esp8266.cpp file, there's __DEBUG_SESSION__ macro which is by default turned off. Could you uncomment this macro, compile the library with it and run the program? Then send the resulting serial communication either here or to my email.

@vedranMv vedranMv added the question Further information is requested label Jun 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants