Function discoverTwinklyDevices

  • Discovers Twinkly devices on the network and returns a Promise with the discovered devices.

    This function sends a UDP broadcast message to discover Twinkly devices. After the discovery process is complete, it resolves the Promise with a set of the discovered devices.

    Parameters

    • timeout: number = TIMEOUT_DURATION

      The duration for the discovery process (in milliseconds).

    Returns Promise<Map<string, TwinklyDevice>>

    • A Promise that resolves with a map of discovered devices.

Generated using TypeDoc