discover object include the port and multicast host. see IDiscoverConfig for more detail
the application logger which implement of log, info, debug and error function
Sets or gets the default captureRejection value for all emitters.
This symbol shall be used to install a listener for only monitoring 'error'
events. Listeners installed using this symbol are called before the regular
'error'
listeners are called.
Installing a listener using this symbol does not change the behavior once an
'error'
event is emitted, therefore the process will still crash if no
regular 'error'
listener is installed.
Add the new discovered device into the internal list
the new device found from network
return 0 if device already existing, 1 if new device added to the list
Clean up resource and close all open connection, call this function after you finish your action to avoid memory leak
return a promise, fullfil will call after internal socket connection dropped
Try to verify if the light on and listening on the know ip address
: know IP Address of the light.
Generate the UDP message to discover device on local network.
Internal function to handle socket error
Error details
The event run when recieved the message devices
the buffer revieved from the socket
Perfrom IP port scan to find an IP with port 55443 open rather than using SSDP discovery method
The class to discover yeelight device on wifi network using UDP package You need to turn on "LAN Control" on phone app to get SSDP discover function work
a promise that could resolve to 1 or many devices on the network
Returns a list listener for a specific emitter event name.
Generated using TypeDoc
The class to discover yeelight device on wifi network using UDP package
Yeelight Discover
samuraitruong@hotmail.com