Go to Post Don't let my students know I skimmed that blog and didn't read it thoroughly. - rlance [more]
Home
Go Back   Chief Delphi > Technical > Programming > Python
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 16-09-2016, 12:36
RyanN's Avatar
RyanN RyanN is offline
RyanN
AKA: Ryan Nazaretian
FRC #4901 (Garnet Squadron)
Team Role: Mentor
 
Join Date: Jun 2006
Rookie Year: 2005
Location: Columbia, SC
Posts: 1,126
RyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond repute
pynetworktables - change IP address after initialization

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
__________________
Garnet Squadron
FRC 4901
Controls Mentor
@rnazaretian

Previous mentor and student from Team Fusion, FRC 364
Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 03:45.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi