wpilibsuite / allwpilib

Official Repository of WPILibJ and WPILibC
https://wpilib.org/
Other
1.05k stars 612 forks source link

Publish NetworkTables connection list via metatable #2765

Closed PeterJohnson closed 1 year ago

PeterJohnson commented 3 years ago

Currently the list of clients connected to the NetworkTables server is only available on the server itself. It would be useful for debugging purposes for clients (e.g. dashboards) to display this information. This can be done within the existing protocol by publishing the connection list via a meta-table similar to FMSInfo.

This could be done without modifying ntcore itself by adding a higher-level (e.g. at WPILib level) connection listener that updates the meta-table.

PeterJohnson commented 1 year ago

Fixed by #3217.