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