Skip to content

MDNS Discovery not working (Empty Array) #227

Description

@steffenu

const discovery = require('node-hue-api').discovery
;

async function getBridge() {
  const results = await discovery.mdnsSearch();

  // Results will be an array of bridges that were found
  console.log(JSON.stringify(results, null, 2));

}

getBridge();

This is not giving me any results ( Empty Array )
what can I do ?

  • using the latest Beta

the api seems to work fine when I just use my ip directly:

const unauthenticatedApi = await hueApi.createLocal("192.168.1.105").connect();

Ok const results = await discovery.nupnpSearch();
seems to work .. but mdns still doesnt .. which I absolutely would need for realiable discovery :D

I have a pretty old router tplink TL-WR1043ND .. could this cause any issues ?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions