You are currently viewing the Homey Apps SDK v2 documentation. New apps should use Homey Apps SDK v3 ››

Homey.DiscoveryResultMDNSSD

const { DiscoveryResultMDNSSD } = require('homey');

This is a discovery result of a mDNS-SD discovery strategy. This class should not be instanced manually.

Table of Contents

Constructor

new Homey.DiscoveryResultMDNSSD()

Properties:
Name Type Description
id string

The identifier of the result.

lastSeen Date

When the device has been last discovered.

address string

The (IP) address of the device.

port string

The port of the device.

txt Object

The TXT records of the device, key-value.

name String

The name of the device.

fullname String

The full name of the device.

Since:
  • 2.5.0

Extends

Events

.on('addressChanged')

Fires when the address has changed.

Overrides:
Parameters:
Name Type Description
discoveryResult DiscoveryResult

.on('lastSeenChanged')

Fires when the device has been seen again.

Overrides:
Parameters:
Name Type Description
discoveryResult DiscoveryResult