Package edu.wpi.first.networktables
Interface RawPublisher
- All Superinterfaces:
AutoCloseable
,Consumer<byte[]>
,Publisher
,PubSub
- All Known Subinterfaces:
RawEntry
public interface RawPublisher extends Publisher, Consumer<byte[]>
NetworkTables Raw publisher.
-
Method Summary
Modifier and Type Method Description default void
accept(byte[] value)
RawTopic
getTopic()
Get the corresponding topic.default void
set(byte[] value)
Publish a new value using current NT time.void
set(byte[] value, long time)
Publish a new value.void
setDefault(byte[] 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
-