WPILibC++ 2025.2.1
Loading...
Searching...
No Matches
Advanced Subscriber Functions

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.
 

Detailed Description

Function Documentation

◆ NT_SubscribeMultiple()

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.

Parameters
instinstance handle
prefixestopic name prefixes
prefixes_lennumber of elements in prefixes array
optionssubscriber options
Returns
subscriber handle

◆ NT_UnsubscribeMultiple()

void NT_UnsubscribeMultiple ( NT_MultiSubscriber sub)

Unsubscribes a multi-subscriber.

Parameters
submulti-subscriber handle