Optional
enableIpv4: booleanCancel a running discovery of commissionable devices. The waiter promises are resolved as if the timeout would be over.
Optional
resolvePromise: booleanDiscovers commissionable devices based on a defined identifier for maximal given timeout, but returns the first found entries. If already a discovered device matches in the cache the response is returned directly and no query is triggered. If no record exists a query is sent out and the promise gets fulfilled as soon as at least one device is found. If no device is discovered in the defined timeframe an empty array is returned. When the promise got fulfilled no more queries are send out, but more device entries might be added when discovered later. These can be requested by the getCommissionableDevices method.
Optional
timeoutSeconds: numberOptional
ignoreExistingRecords: booleanDiscovers commissionable devices based on a defined identifier and returns the first found entries. If already a
Optional
timeoutSeconds: numberOptional
cancelSignal: Promise<void>Method to find an operational device (already commissioned) and return a promise with the list of discovered IP/ports or an empty array if not found.
Return already discovered commissionable devices and return them. Does not send out new DNS-SD queries.
Return already discovered addresses of an operational paired device and return them. Does not send out new DNS-SD queries.
Static
createOptional
options: { Optional
enableOptional
netStatic
deviceStatic
discovery
This class implements the Scanner interface for a MDNS scanner via UDP messages in a IP based network. It sends out queries to discover various types of Matter device types and listens for announcements.