Configuration for commissioning a previously discovered node.

interface LocatedNodeCommissioningOptions {
    addresses: ServerAddress[];
    adminVendorId?: VendorId;
    discoveryData?: DiscoveryData;
    fabric: Fabric;
    finalizeCommissioning?: ((peerAddress: PeerAddress, discoveryData?: DiscoveryData) => Promise<void>);
    nodeId?: NodeId;
    passcode: number;
    regulatoryCountryCode?: string;
    regulatoryLocation?: GeneralCommissioning.RegulatoryLocationType;
    threadNetwork?: {
        networkName: string;
        operationalDataset: string;
    };
    wifiNetwork?: {
        wifiCredentials: string;
        wifiSsid: string;
    };
}

Hierarchy (view full)

Properties

addresses: ServerAddress[]
adminVendorId?: VendorId

The vendor ID we present as a commissioner.

discoveryData?: DiscoveryData
fabric: Fabric

The fabric into which to commission.

finalizeCommissioning?: ((peerAddress: PeerAddress, discoveryData?: DiscoveryData) => Promise<void>)

Commissioning completion callback

This optional callback allows the caller to complete commissioning once PASE commissioning completes. If it does not throw, the commissioner considers commissioning complete.

nodeId?: NodeId

The node ID to assign (the commissioner assigns a random node ID if omitted)

passcode: number

Passcode to use for commissioning.

regulatoryCountryCode?: string

The country where the device is used.

The regulatory location (indoor or outdoor) where the device is used.

threadNetwork?: {
    networkName: string;
    operationalDataset: string;
}

If the device should connect to a thread network.

wifiNetwork?: {
    wifiCredentials: string;
    wifiSsid: string;
}

Required credentials if the device is to connect to a wifi network provide the credentials here.