Package edu.wpi.first.networktables
Interface StringPublisher
- All Superinterfaces:
AutoCloseable
,Consumer<String>
,Publisher
,PubSub
- All Known Subinterfaces:
StringEntry
NetworkTables String publisher.
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
getTopic()
Get the corresponding topic.default void
Publish a new value using current NT time.void
Publish a new value.void
setDefault
(String value) Publish a default value.
-
Method Details
-
getTopic
Get the corresponding topic. -
set
Publish a new value using current NT time.- Parameters:
value
- value to publish
-
set
Publish a new value.- Parameters:
value
- value to publishtime
- timestamp; 0 indicates current NT time should be used
-
setDefault
Publish a default value. On reconnect, a default value will never be used in preference to a published value.- Parameters:
value
- value
-
accept
-