Subscriber

class ntcore.Subscriber

Bases: pybind11_object

NetworkTables subscriber.

exists() bool

Determines if the topic is currently being published.

Returns:

True if the topic exists, false otherwise.

getLastChange() int

Gets the last time the value was changed. Note: this is not atomic with Get(); use GetAtomic() to get both the value and last change as an atomic operation.

Returns:

Topic last change time

getTopic() ntcore._ntcore.Topic

Gets the subscribed-to topic.

Returns:

Topic