Gets the PubSubClient instance used to establish and manage the connection to the robot.
The PubSubClient instance.
Adds a listener for robot connection status updates.
The callback to call when the connection status changes.
Optional
immediateNotify: booleanWhether to immediately notify the callback of the current connection status.
A function to remove the listener.
Creates a new topic with a prefix.
The prefix of the topic.
The topic.
Creates a new topic.
The name of the topic.
The type information of the topic.
Optional
defaultValue: TThe default value of the topic.
The topic.
Returns the port to connect to the robot on.
The port number.
Returns the URI of the server.
The robot address.
Returns whether the robot is currently connected.
Whether the robot is connected.
Returns whether the robot is currently connecting.
Whether the robot is connecting.
Static
getCreates a new NetworkTables instance if it does not exist.
The team number of the robot.
The port to connect to the robot on. Defaults to 5810.
The NetworkTables instance.
Static
getCreates a new NetworkTables instance if it does not exist.
The URI of the robot.
The port to connect to the robot on. Defaults to 5810.
The NetworkTables instance.
NetworkTables class for interacting with NetworkTables over a WebSocket connection.