Hi,
I have just got UDP logging to my InfluxDB working but only when I use the server ip address. The IP of my server changes every 24 hours so I am using a dynamic DNS service. My software runs at the Moment on a Photon but as soon as all features are ready I would like to move to my Electron.
Udp.beginPacket(dyndns_address, port)
does not work so I am using:
IPAddress ip = WiFi.resolve(INFLUXDB_HOST);
But this is not possible on an Electron and I could not find any similar function in the docs.
The TCP protocol supports client.connect(URL, port); but it consumes to much data on an Electron.
I would be very grateful if you could tell me if there is a way to resolve an URL to an IP address on an Electron?
Will there be support for Udp.beginPacket(URL, port) in the future?
The workaround that I use is simple electronResolve function below. It works like WiFi.resolve() except on the Electron, using the DNS functions built into the cellular modem.