RyanN
16-09-2016, 12:36
I know this is probably a weird request. I'm working on an application that will relay I/O between our operator interface control board and the robot.
I want to add functionality to change the robot address because I will often switch to using a simulator (localhost) and our robot (roborio-4901-frc.local). I don't want to have to restart the application to do this.
Here's how the code starts up the network table service:
NetworkTable.setIPAddress(address)
NetworkTable.setClientMode()
NetworkTable.setWriteFlushPeriod(flushPeriod=flush _period)
NetworkTable.initialize()
What happens if I call NetworkTable.setIPAddress() after initialize is called? Can I reinitialize?
Thanks,
Ryan Nazaretian
I want to add functionality to change the robot address because I will often switch to using a simulator (localhost) and our robot (roborio-4901-frc.local). I don't want to have to restart the application to do this.
Here's how the code starts up the network table service:
NetworkTable.setIPAddress(address)
NetworkTable.setClientMode()
NetworkTable.setWriteFlushPeriod(flushPeriod=flush _period)
NetworkTable.initialize()
What happens if I call NetworkTable.setIPAddress() after initialize is called? Can I reinitialize?
Thanks,
Ryan Nazaretian