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
weiwei
2017 年12 月 19 日 14:25
#2
Make sure the LAN Control is opened on your device.
Does the page need to be open, or just mode enabled?
weiwei
2017 年12 月 19 日 14:38
#4
Just enable the Lan Control option of your strip in Yeelight app.
Yup that’s enabled, but unable to discover
weiwei
2017 年12 月 19 日 14:42
#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
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
weiwei
2017 年12 月 19 日 14:59
#8
How many interfaces does your PC have? Maybe the library is binding the multiplecast socket on a incorrect interface.
It’s got just the 1 which is an ethernet port.
weiwei
2017 年12 月 19 日 15:39
#10
You know wireshark or tcpdump? You can use that to capture the “any” interface traffic and use UDP port as a filter.
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