Basically, I've thought about a contructor as
NTPClient(String host, int interval)
NTPClient.begin()
My problem is with that registering. I have a public function:
time_t ntpClient::getNtpTime()
Then, inside
boolean ntpClient::begin()
setSyncProvider(ntpClient::getNtpTime)
setSyncProvider(this->getNtpTime)
ntpClient.cpp:In member function 'boolean ntpClient::begin()
ntpClient.cpp:79:39: error: cannot convert 'ntpClient::getNtpTime' from type 'time_t (ntpClient::)() {aka long int (ntpClient::)()}' to type 'getExternalTime {aka long int (*)()}
setSyncProvider(ntpClient*:getNtpTime)
Error compiling project sources
What could I do to allow registering this funtion as sync provider to hide ntp internals to my scketches?
Regards