-
Notifications
You must be signed in to change notification settings - Fork 11
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
IP address not given in AP mode; devices unable to connect. #4
Comments
I'm not sure why the ESP8266 would not be assigning IP address to station clients in AP mode. It should automatically start acting as the DHCP server for the network it creates. This is likely a ESP8266 issue that is not directly related to this sketch. There is a conversation here that might be related: esp8266/Arduino#1956 Questions:
|
Hi again,
works correctly, serial monitor shows: [Bunch of ascii symbols here______________] and when I connect to ESPap and go to 192.168.4.1, I get You are connected on both my phone and laptop. |
Could be that I've found the problem. Had the same random problems not getting IP-address, getting wrong password messages etc. |
I was having the same issue with the ESP8266 not connecting to my AP. As soon as I disabled this part of the code, it started working: // // Add entropy to random number generator; we use a lot of it. I don't know why but it works now. Update: I moved the code to the setup section and it works!!! |
ohh yeah, i forgot about that thing. I lost all this code a long time ago, because i moved over to the esp32 |
Using the original code, the esp keeps disconnecting from my wifi router:
The solution from @wilson3682 didnt help for me. I added a delay(10000) at the start of the void loop, and now the esp stays connected. But thats a really bad solution. @08-15at could you post your solution (code)? |
I'm hoping for this as well. Was unable to stay connected to Wifi. The only way I was able to get it to work was to set the audio delay to 10. Other than that, nothing worked to be able to connect to the board after I loaded everything. |
I am having difficulty getting the sketch to work properly. It is going in a wearable project, so I am setting the boolean to “true” in the AP portion of the top of the code. The sketch compiles and loads properly, as does the sketch data to the SPIFFS. The problem is, the ESP won’t give an IP address to anything that tries to connect with it. I had previously gotten the esp8266-fastled-webserver code to function, thanks to the great documentation given with it, and it was a good learning experience. I was looking to incorporate the MSGEQ7 breakout board for some sound reactive light display. I have tried the code on a Wemos D1 Mini and a NODEMCU board, and get the same symptoms.
The serial monitor shows the following when I try to connect my laptop to the esp AP:
After much reading on possible causes of this issue, I erased the flash memory in the ESP8266 by using Nodemcu flasher and loading Pratikpanda’s blank 1M file to each of the following memory locations: 0x00000, 0x100000, 0x200000, 0x300000 (the 0x300000 location hung up after a few percent on the bargraph.) I had tried Kentaylor’s github EraseEsp8266Flash Arduino sketch with the Ken Taylor Wifi manager but could not get it to work.
Then I downloaded the esp8266-fastled-audio sketch and sketch data to the Wemos D1 mini again.
Serial monitor shows:
and repeats. Symptoms are the same as before; no IP address is given to my HTC One M8 android phone (ae:14) or laptop (a4:50). Phone eventually shows IP Configuration failure, and the laptop shows the webpage at 192.168.4.1 unreachable. I am pretty stumped, and have tried to find the solution, but could use some help please. Please forgive and github or syntax errors, this is my first github issue submission. Thanks.
The text was updated successfully, but these errors were encountered: