WPILibC++ 2023.4.3-108-ge5452e3
|
Functions | |
NT_MultiSubscriber | nt::SubscribeMultiple (NT_Inst inst, std::span< const std::string_view > prefixes, const PubSubOptions &options=kDefaultPubSubOptions) |
Subscribes to multiple topics based on one or more topic name prefixes. More... | |
void | nt::UnsubscribeMultiple (NT_MultiSubscriber sub) |
Unsubscribes a multi-subscriber. More... | |
NT_MultiSubscriber nt::SubscribeMultiple | ( | NT_Inst | inst, |
std::span< const std::string_view > | prefixes, | ||
const PubSubOptions & | options = kDefaultPubSubOptions |
||
) |
Subscribes to multiple topics based on one or more topic name prefixes.
Can be used in combination with a Value Listener or ReadQueueValue() to get value changes across all matching topics.
inst | instance handle |
prefixes | topic name prefixes |
options | subscriber options |
void nt::UnsubscribeMultiple | ( | NT_MultiSubscriber | sub | ) |
Unsubscribes a multi-subscriber.
sub | multi-subscriber handle |