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
Wifi.softAPConfig() sometimes set the wrong IP address #985
Comments
Anyone experiencing the same ? |
you have to wait until event SYSTEM_EVENT_AP_START has fired, before you can set its configuration. and the AP is started by
a crude hack would be to put delay(100); after WiFi.softAP(...); |
I can confirm that the following is working for me, running Arduino with the latest ESP32 library
|
I also tried today and so far it has been working correctly. I'll report it if it behaves weird again. Thanks guys ! |
I have problem for one week using WIFI_AP_STA specially AP mode. I am using ESP32 and PlatformIo and after connect to AP I can not connect to websocket. I had no problem before. WiFi.disconnect(true); //Disable STA |
@everslick Awesome! It works! |
what is |
### Releases 1.0.11 1. Add optional **CORS (Cross-Origin Resource Sharing)** feature. Thanks to [AlesSt](https://github.com/AlesSt). See more in [Issue #27: CORS protection fires up with AJAX](#27) and [Cross Origin Resource Sharing](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing). To use, you must explicitly use `#define USING_CORS_FEATURE true` 2. Solve issue softAP with custom IP sometimes not working. Thanks to [AlesSt](https://github.com/AlesSt). See [Issue #26: softAP with custom IP not working](#26) and [Wifi.softAPConfig() sometimes set the wrong IP address](espressif/arduino-esp32#985). 3. Temporary fix for issue of not clearing WiFi SSID/PW from flash of ESP32. Thanks to [AlesSt](https://github.com/AlesSt). See more in [Issue #25: API call /r doesnt clear credentials](#25) and [WiFi.disconnect(true) problem](espressif/arduino-esp32#400). 4. Fix autoConnect() feature to permit autoConnect() to use STA static IP or DHCP IP. Remove from deprecated functi0n list. 5. Enhance README.md with more instructions and illustrations.
Hardware:
Board: Lolin32 Lite
Core Installation/update date: ?11/jul/2017?
IDE name: Platform.Io
Flash Frequency: ?
Upload Speed: ?
Description:
I'm using my esp as an AP to serve a little webserver. To do so, I start the ESP in AP mode like this:
As you can see I'm giving a static IP to the ESP which is supposed to be
192.168.5.1
. Moreover, the sub network mask is set to /24. However despite this given configuration I sometimes get my ESP adressed as192.168.4.1
(which is confirmed when I try to access the webserver).Am I missing a configuration option ? Thanks :)
The text was updated successfully, but these errors were encountered: