WPILibC++ 2025.2.1
|
Functions | |
NT_MultiSubscriber | NT_SubscribeMultiple (NT_Inst inst, const struct WPI_String *prefixes, size_t prefixes_len, const struct NT_PubSubOptions *options) |
Subscribes to multiple topics based on one or more topic name prefixes. | |
void | NT_UnsubscribeMultiple (NT_MultiSubscriber sub) |
Unsubscribes a multi-subscriber. | |
NT_MultiSubscriber NT_SubscribeMultiple | ( | NT_Inst | inst, |
const struct WPI_String * | prefixes, | ||
size_t | prefixes_len, | ||
const struct NT_PubSubOptions * | options ) |
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 |
prefixes_len | number of elements in prefixes array |
options | subscriber options |
void NT_UnsubscribeMultiple | ( | NT_MultiSubscriber | sub | ) |
Unsubscribes a multi-subscriber.
sub | multi-subscriber handle |