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

Homey.DiscoveryResult

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

This class should not be instanced manually.

Table of Contents

Constructor

new Homey.DiscoveryResult()

Properties:
Name Type Description
id string

The identifier of the result.

lastSeen Date

When the device has been last discovered.

Since:
  • 2.5.0

Events

.on('addressChanged')

Fires when the address has changed.

Parameters:
Name Type Description
discoveryResult DiscoveryResult

.on('lastSeenChanged')

Fires when the device has been seen again.

Parameters:
Name Type Description
discoveryResult DiscoveryResult