Constructors

Methods

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Discovers devices by a provided identifier and a list of scanners (e.g. IP and BLE in parallel). It returns after the timeout or if at least one device was found. The method returns a list of addresses of the discovered devices.

    Parameters

    Returns Promise<CommissionableDevice[]>

  • Parameters

    • fabric: Fabric
    • peerNodeId: NodeId
    • scanner: MdnsScanner
    • OptionaltimeoutSeconds: number
    • OptionalignoreExistingRecords: boolean

    Returns Promise<OperationalDevice>

  • Helper method to iterate through a list of server addresses and try to execute a method on each of them. If the method throws a configurable error (or EHOSTUNREACH), the server address list is updated (to also add later discovered addresses or devices) and then next server address is tried.The result of the first successful method call is returned. The logic makes sure to only try each unique address (IP/port) once.

    Type Parameters

    Parameters

    Returns Promise<{
        result: T;
        resultAddress: AddressTypeFromDevice<DD>;
        resultDevice?: DD;
    }>