A CommissioningServer node represent a matter node that can be paired with a controller and runs on a defined port on the host

Hierarchy (view full)

Constructors

Properties

delayedAnnouncement?: boolean
rootEndpoint: RootEndpoint = ...

Methods

  • Advertise the node via all available interfaces (Ethernet/MDNS, BLE, ...) and start the commissioning process

    Parameters

    • OptionallimitTo: TypeFromPartialBitSchema<{
          ble: BitFlag;
          onIpNetwork: BitFlag;
      }>

      Limit the advertisement to the given discovery capabilities. Default is to advertise on ethernet and BLE if configured

    Returns Promise<void>

  • Get some basic details of all currently active sessions.

    Parameters

    • OptionalfabricIndex: FabricIndex

      Optional fabric index to filter for. If not set all sessions are returned.

    Returns {
        fabric: undefined | ExposedFabricInformation;
        isPeerActive: boolean;
        lastActiveTimestamp: undefined | number;
        lastInteractionTimestamp: undefined | number;
        name: string;
        nodeId: NodeId;
        numberOfActiveSubscriptions: number;
        peerNodeId: NodeId;
        secure: boolean;
    }[]

  • Set the reachability of the commissioning server aka "the main matter device". This call only has effect when the reachability flag was set in the BasicInformationCluster or in the BasicInformation data in the constructor!

    Parameters

    • reachable: boolean

      true if reachable, false otherwise

    Returns void