1.2.0 • Published 7 years ago

yeelight-led v1.2.0

Weekly downloads
5
License
MIT
Repository
github
Last release
7 years ago

yeelight-led

A lightweight SDK to control Yeelight smart LED devices.

Documentation

Example

var yeelight = require('yeelight-led');

yeelight.discover(function (device) {
	console.log('Device found:', device.id);

	device.sendCommand('get_prop', 'name', function (err, result) {
		console.log('Device name:', result[0]);
	});

	device.sendCommand('toggle');
	setTimeout(function () {
		device.sendCommand('toggle');
	}, 1000);
});
1.2.0

7 years ago

1.1.0

7 years ago

1.0.0

7 years ago