ESP32 DHCP assigned ip address detection from iOS
Posted: Wed Oct 18, 2017 8:30 pm
Good day to you all,
I have a coap server running on my ESP32 and i'm accessing it from my iOS application. It's all good when i hardcode the ip address of the ESP32. But as we all know the ip address is not fixed, It will eventually change when i power up ESP32. Now i'm aware of the below method provided by @kolban to disable DHCP and assign our own IP address,
esp32-snippets/wifi/fragments/connect_with_static_ip.c
But there are two problems with above solution,
Your opinions/solutions are most welcome,
Thanks in advance!
I have a coap server running on my ESP32 and i'm accessing it from my iOS application. It's all good when i hardcode the ip address of the ESP32. But as we all know the ip address is not fixed, It will eventually change when i power up ESP32. Now i'm aware of the below method provided by @kolban to disable DHCP and assign our own IP address,
esp32-snippets/wifi/fragments/connect_with_static_ip.c
But there are two problems with above solution,
- 1. It fails to provide internet connectivity even though ESP32 has connected to AP with given IP address
2. It is not reliable to use with practical/end-product since there can be an IP conflicts and breakdown the whole process/system
Your opinions/solutions are most welcome,
Thanks in advance!