Strip not responding to multicast request


#1

I’m trying to connect to the LED Strip using node. I am using this library:

I’ve tried multiple libraries, but after the message

{ 'M-SEARCH * HTTP/1.1': '',
  HOST: '239.255.255.250:1982',
  MAN: '"ssdp:discover"',
  ST: 'wifi_bulb' }

is sent, it never recieves a response. This seems to be the same for multiple Node libraries, as well as the SSDP tools available for Windows.

Any suggestions? LAN control is enabled


#2

Make sure the LAN Control is opened on your device.


#3

Does the page need to be open, or just mode enabled?


#4

Just enable the Lan Control option of your strip in Yeelight app.


#5

Yup that’s enabled, but unable to discover


#6

Are you running this code on your PC or on a RPi?
You can run some demo project listed in following pages and see if they are working.
http://www.yeelight.com/en_US/developer


#7

I’m running it from my PC yep. I’m not sure whats going on.

I’ve got the Windows app and Chrome app working fine, but none of these Node libs seem to work. Not sure whats going on


#8

How many interfaces does your PC have? Maybe the library is binding the multiplecast socket on a incorrect interface.


#9

It’s got just the 1 which is an ethernet port.


#10

You know wireshark or tcpdump? You can use that to capture the “any” interface traffic and use UDP port as a filter.


#11

This must be a Windows Node issue. I’ve just tested the same lib on my Macbook and it works without any issue at all.
Bizarre, wonder why this isn’t working on Windows