View Single Post
  #8   Spotlight this post!  
Unread Today, 14:40
jcbaker4050's Avatar
jcbaker4050 jcbaker4050 is offline
Registered User
AKA: John Baker
FRC #4050 (Biohazard)
Team Role: Mentor
 
Join Date: Dec 2016
Rookie Year: 2016
Location: Waynesboro, PA
Posts: 5
jcbaker4050 is an unknown quantity at this point
Re: Creating a custom NetworkTable?

Quote:
Originally Posted by Peter Johnson View Post
Tables in NetworkTables are a convention to help organize keys into logical groupings by using "/" as a separator; the actual NetworkTables key namespace is flat. Tables themselves don't really exist (except as an object in your code to keep track of the table path for convenience sake), so it's not actually necessary to create or delete them.

For example, getTable("/").putNumber("foo/bar", 5) and getTable("/foo").putNumber("bar", 5) are exactly equivalent (both set the key "/foo/bar" to 5).
Peter, thanks for the additional information. That's a bit different than Oracle database tables, which is what I'm used to. Makes sense, though. And seems easy enough to work with now that I've had my misconceptions cleared up.
Reply With Quote