-
Notifications
You must be signed in to change notification settings - Fork 74
Added the ability to set static ip, set hostname, and set DNS #141
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
Conversation
…e esp32spi interface as the esp32SPI interface supports this
do you want to also submit an example showing this in use? |
this code recieves udp data on ip: 192.168.2.2:5500 `import time IP_ADDRESS = "192.168.2.2" UDP_IN_ADDR="192.168.2.2" UDP_TIMEOUT = 20 esp32_cs = DigitalInOut(board.CS1) spi = busio.SPI(board.SCK1, board.MOSI1, board.MISO1) esp = adafruit_esp32spi.ESP_SPIcontrol(spi, esp32_cs, esp32_ready, esp32_reset) s_in = socket.socket(type=socket.SOCK_DGRAM) if esp.status == adafruit_esp32spi.WL_IDLE_STATUS: print("set ip dns") print("set ip config") time.sleep(1) time.sleep(1) IP_ADDR = esp.pretty_ip(esp.ip_address) socketaddr_udp_in = socket.getaddrinfo(UDP_IN_ADDR, UDP_IN_PORT)[0][4] while True: ` outputs: set hostname: |
ok for the example, add it to the PR :) |
@manpowre looks like it's failing on |
Closing this for now. @manpowre if you are still interested and get back around to this, please run the black code formatter on the code and add an example into the We have a guide here: https://learn.adafruit.com/creating-and-sharing-a-circuitpython-library/black that shows the formatting process and you can ask for help in our discord if you want to do this but don't know how. Feel free to re-open this once that has been done. |
Added the ability to set static ip, set hostname, and set DNS with the esp32spi interface as the esp32SPI interface supports this