please find the attached code. If I run the function do_influx() attached to the ticker influx_ticker, as you can see in line 55, it runs every 60 seconds but the POST request will fail in HTTP_CLIENT, dns_gethostbyname with error -5. Which is ERR_CLSD. The connection seems to be closed.
If I run the function directly from loop(), as you can see in line 127, it works fine as expected. I dont understand, why it does not work as a ticker-function. Any hints on that? Thank you!