Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

How to configure wifi to use a static IP address on Amazon Freertos for esp32 #3206

Open
Johnnyjax opened this issue Jun 9, 2021 · 1 comment

Comments

@Johnnyjax
Copy link

Johnnyjax commented Jun 9, 2021

Hello, I checked the amazon freertos wifi library and I can't find anything on configuring the softAP with a static IP address, I don't want to modify the iot_wifi.c file in the ports folder for the esp32 to achieve this because I know I can achieve that using the esp_netif_set_ip_info(esp_softap_netif_info, &ipInfo) function in the iot_wifi.c file where ipinfo will contain the static IP address . Is there a way to achieve this in the aws_iot_network_manager.c file in the "demos/network manager" folder instead so that the demos are configured with a static IP address? Thanks.

@yourslab
Copy link
Contributor

yourslab commented Jun 9, 2021

Unfortunately, I don't think it's possible because iot_wifi.h does not have a function to set a static IP. It will be a lot of work to implement this as well because all board ports will need to be updated to support this functionality. Since you need this for esp32 only, is it enough for you to just modify iot_wifi.c with esp_netif_set_ip_info?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants