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

Homey.DiscoveryResultMAC

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

This is a discovery result of a MAC discovery strategy. This class should not be instanced manually.

Table of Contents

Constructor

new Homey.DiscoveryResultMAC()

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.

mac string

The MAC address 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