Private
constructorCreates a new NetworkTables instance.
The properties to use to create the instance.
Error if the team number or URI is not provided.
Private
_clientThe PubSubClient instance used to establish and manage the connection to the robot.
Private
portPrivate
uriThe URI of the server.
Static
Private
_instancesThe instance of the NetworkTables class.
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.
The name of the topic.
The type information of the topic.
Optional
defaultValue: TThe default value of the topic.
The topic.
Static
createDEPRECATED: Creates 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.
Use NetworkTables#getInstanceByTeam instead.
Error if the team number is not provided.
Static
createDEPRECATED: Creates 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.
Use NetworkTables#getInstanceByURI instead.
Error if the URI is not provided.
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.
Error if the team number is not provided.
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.
Error if the URI is not provided.
Generated using TypeDoc
NetworkTables class for interacting with NetworkTables over a WebSocket connection.