Interface DiscoveryOptions

Hierarchy

  • DiscoveryOptions

Properties

address?: string

address to bind udp socket

breakoutChildren?: boolean

if device has multiple outlets, create a separate plug for each outlet, otherwise create a plug for the main device

Default Value

true
broadcast?: string

broadcast address

Default Value

'255.255.255.255'
deviceOptions?: DeviceOptionsDiscovery

passed to device constructors

deviceTypes?: ("plug" | "bulb")[]
devices?: DiscoveryDevice[]

known devices to query instead of relying only on broadcast

devicesUseDiscoveryPort?: boolean

Set device port to the port it responded with to the discovery ping

Default Value

false
discoveryInterval?: number

Interval in (ms)

Default Value

10000
discoveryTimeout?: number

Timeout in (ms)

Default Value

0
excludeMacAddresses?: string[]

MAC will be normalized, comparison will be done after removing special characters (:,-, etc.) and case insensitive, glob style *, and ? in pattern are supported

Default Value

[]
filterCallback?: ((sysInfo) => boolean)

Type declaration

    • (sysInfo): boolean
    • called with fn(sysInfo), return truthy value to include device

      Parameters

      Returns boolean

macAddresses?: string[]

MAC will be normalized, comparison will be done after removing special characters (:,-, etc.) and case insensitive, glob style *, and ? in pattern are supported

Default Value

[]
offlineTolerance?: number

Number of consecutive missed replies to consider offline

Default Value

3
port?: number

port to bind udp socket

Generated using TypeDoc