-
Notifications
You must be signed in to change notification settings - Fork 74
Arduino RP2040 Connect. wifi chip integration missing Dhcp(True/False) #140
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
this library doesnt support dhcp static ip config - it looks like the esp32's nina firmware supports it? but you'd have to add the capability to the library or just tell your router to only use one IP address for the MAC. |
I tried openMV micropython and they implemented ifconfig() and that works. so its not the esp32 missing functionality, its the circuitpython library. (openMV doesnt support nepixel with pwm, so I cant use that). |
correct, you'd have to add the capability to the driver - we have not implemented it. |
I did some digging, the Nina interface has its commands and parameters here: I implemented into adafruit_esp32spi.py:
the set_hostname works great, but the set_ip_config doesnt work. The ESP32 returns 0x00, which means failed. Not submitting until I figured out why the set_ip_config function wont set the ip correctly. |
nice work! looks like you've got the right direction |
well the set_ip_config aint setting the ip. not sure whats going on here. |
got it working:
` I can now set ip to 192.168.2.2, gw 192.168.1.1, mask 255.255.255.0 and it recieves UDP packages at 192.168.2.2 !! yayy |
yes!!! please submit a PR :) |
ip config, dns config, and hostname were implemented in this library last year, and there should be support already in the Arduino and Adafruit form of the NINA firmware. I think we can close this issue. |
CircuitPython version
Code/REPL
Behavior
The interface is missing the ifconfig to set a static IP adress:
esp.ifconfig = (IP_ADDRESS, SUBNET_MASK, GATEWAY_ADDRESS, DNS_SERVER)
this is critical for people wanting to use this device with circtuitpython to atleast be able to set a static IP, otherwise the DHCP will renew the IP adress from time to time.
I tested OpenMV micropython and their ifconfig works like a charm so its not the wifi chip, its the circtuitpython interface thats missing this.
Description
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: