Listening to changes on specific keys

This program shows how to listen for changes on two keys in NetworkTables using two different methods. One listens for changes of the key "X" in "/datatable" and the other listens for changes to the key "Y" in "datatable".

  1. Create a NetworkTableEntry object that refers to "/datatable/Y".
  2. Using a lambda, print a message every time the value "/datatable/X" is created or updated.
  3. Again using a lambda, print a message every time the value of "/datatable/Y" is created or changed.

0 Report Errors

Use this form to report any errors with the documentation. For help with WPILib, please use the FIRST Forums at http://forums.usfirst.org For reporting WPILib bugs, please submit an issue on GitHub at https://github.com/wpilibsuite/allwpilib/issues/new

Ignore