I am trying to wrap a NTP time client in an object/library so I can reuse it. If I pass the time server in the constructor and instantiate the Ethernet client (in the constructor) I cannot use it within the whole class. I get a compile error referencing scope.
I don't want to pass the client as a variable either since I want the NTP object to do everything.
Could someone help me determine how to get around this issue?