WPILibC++ 2024.3.2
Advanced Subscriber Functions

Functions

NT_MultiSubscriber NT_SubscribeMultiple (NT_Inst inst, const struct NT_String *prefixes, size_t prefixes_len, const struct NT_PubSubOptions *options)
 Subscribes to multiple topics based on one or more topic name prefixes. More...
 
void NT_UnsubscribeMultiple (NT_MultiSubscriber sub)
 Unsubscribes a multi-subscriber. More...
 

Detailed Description

Function Documentation

◆ NT_SubscribeMultiple()

NT_MultiSubscriber NT_SubscribeMultiple ( NT_Inst  inst,
const struct NT_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