void NtpClient::staticDnsResponse(const char *name, struct ip_addr *ip, void *arg) { // DNS has been resolved NtpClient *self = (NtpClient*) arg; if (ip != NULL) { // We do a new request since the last one was never done. self->internalRequestTime(*ip); } }
void connectOk() { ntpClient.requestTime(); }