Contents

WASubscriberBrowser.Devices

The structure that determines the devices to connect to.

Declaration

struct Devices

Overview

This structure determines the devices the NetworkBrowser acts on when subscribing, such as which devices to try to connect to. It allows your app to include only the devices that are relevant for a given NetworkBrowser operation and use case.

Devices is the to: component of the .wifiAware() instruction to a NetworkBrowser.

The code below is an example of configuring a NetworkBrowser with specific devices to connect to:

NetworkBrowser(for: .wifiAware( .connecting(to:.selected(devices),  from:service) ) )

Topics

Selecting devices to connect to

Using a live matching filter

Connecting to all paired devices

See Also

Subscriber