robotpy / pynetworktables

Pure python implementation of the FRC NetworkTables protocol
Other
60 stars 30 forks source link

Make client initialization less verbose #29

Closed virtuald closed 7 years ago

virtuald commented 7 years ago

Leaving this as a note to myself. Instead of

NetworkTable.setIPAddress(ip)
NetworkTable.setClientMode()
NetworkTable.initialize()

How about this instead?

NetworkTables.initialize(server='roborio-xxx-frc.local')

If no server argument is given, then it initializes in server mode instead. Can leave the old functions (setIPAddress, setClientMode) for backwards compatibility too.

virtuald commented 7 years ago

This has been implemented in the nt3 branch.