UNPKG

@harmonyhub/discover

Version:

Discover available Logitech Harmony Hubs in the current network.

21 lines (15 loc) 689 B
// You can pass optional options to discover. // The values stated below after the description are the default values. const Explorer = require('../lib/'); const discover = new Explorer(61991, { // Having multiple network interfaces on a system, you may need to specify the broadcast address to the subnet your // hub is connected to. // Example: Hub is within subnet 192.168.1.0/24, use address "192.168.1.255". address: '255.255.255.255', // Discovery probe UDP packets are sent to this port: port: 5224, // Control time delay in milliseconds between sending two discovery probe packets: interval: 1000 }); // register handlers as in basic example discover.start();