Action Required! Starting November 21st, 2022, Nest Hubs opted into the Preview Program are being updated to support Matter 1.0 in anticipation of Google's general availability (GA) of Matter. All Matter devices being used with the Preview Program will need to be updated. See the Release Notes for more details.

DiscoveryClient

Stay organized with collections Save and categorize content based on your preferences.
public interface DiscoveryClient implements HasApiKey<Api.ApiOptions.NoOptions> OptionalModuleApi

Client interface for discovering operational Matter devices on the local network.

Public Method Summary

abstract Task<ResolveServiceResult>
resolveService(ResolveServiceRequest request)
Resolves addresses and TXT records on the local network for the Matter DNS-SD service represented by ResolveServiceRequest.

Public Methods

public abstract Task<ResolveServiceResult> resolveService (ResolveServiceRequest request)

Resolves addresses and TXT records on the local network for the Matter DNS-SD service represented by ResolveServiceRequest. Note that this API may be used only to resolve Matter commissionable or operational service records (i.e. _matter._tcp, or _matterc._udp).

On success, the Task will complete with an instance of DnsSdServiceInfo including the information about the resolved service.

If the service was not resolved, then the task will fail with an ApiException, with the status code being CommonStatusCodes.TIMEOUT.

If an unsupported service type is provided in the request, orthis is called when Build.VERSION.SDK_INT is lower than Build.VERSION_CODES.O_MR1, then the Task will fail with an ApiException with the status code CommonStatusCodes.DEVELOPER_ERROR.