NetworkTableInstance startClient() method

In the current version of wipilib (v2023.1.1-beta-7) the startClient() methods on NetworkTableInstance that allowed one to specify the server address and/or port appear to have gone missing. There is now a startClient3() and a startClient4() method, both of which accept a string argument mysteriously called “identity”. I tried looking at the source on Github here:

but oddly it seems that the file has also gone missing. Looking back through the tags, it appears to have disappeared as of v2023.1.1-alpha-1.

Does anyone know what the intent was? The startClient(address) method was useful when you were testing with a network tables server that was not on the robot.

The instance file is now template generated.

For connecting to a specific server, you’d call startClient4 (or startClient3 if you wanted to connect to an old NT3 server), and then call setServer, which is where address and port would come from.

The identity string is just a unique identifier to identify the client to the server. It has nothing to do with addresses

1 Like

Thanks for the help.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.