-
Notifications
You must be signed in to change notification settings - Fork 7.6k
ESP32 AP Mode Local IP #6270
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
Comments
Regarding your specific question about using an IP address within DHCP Server range, you may want to set DHCP server parameters to add x.x.x.254 as a Reserved IP Address. It may be possible depending on your router options or on your Linux DHCP Server (I don't have any information about your network or DHCP server). Or you may want to set ESP Static IP out of DHCP range, but still in the range within the same netmask. Anyway, this is not related to ESP32 setup or ESP Arduino. Observation:The return ( If you want, you can try to apply the PR #6294 to your local machine with 1.0.6. |
Hello SuGlider, Thank you for your help. It isn't only the false return what is the problem. I also can't connect to the ESP32 with my device. Is there a way to exclude the Local_Ip from the DHCP server which is running on the ESP32? Or reconfiguring the DHCP range? With the AccesPoint mode on the ESP there is no external router |
Looking the code: https://github.com/espressif/arduino-esp32/blob/master/libraries/WiFi/src/WiFiGeneric.cpp#L139-L148 Because your example assigns x.x.x.254, it is already at the end of network addressing space and it fails with As you already said, assigning static IP as 192.168.1.240 (instead of .254) works fine. I will work a fix for this issue anyway. |
Board
ESP32
Device Description
Custom Board
Hardware Configuration
not relevant
Version
v1.0.6
IDE Name
Arduino
Operating System
Windows 10
Flash frequency
80
PSRAM enabled
no
Upload speed
921600
Description
Hello all,
I got a Problem Setting up an Access Point. there seems to be an DHCP server starting at Address x.x.x.241. This will cause an Problem if setting up the local IP in this range, like the example below.
Is there a option that this would be possible?
For my actual project the local IP Address could be changed by an user, and so this could cause problems.
Actual it works if I limit the local IP to x.x.x.240 But it would me more flexible if this isn't necessarry
Sketch
Debug Message
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: