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,
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
Because of the above drawbacks, i'm looking for a new way to somehow detect my ESP32 module IP address from my iOS application.
Your opinions/solutions are most welcome,
Thanks in advance!