Skip to content

netbeast/react-native-yeelight

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yeelight-wifi

CircleCI codecov

The Yeelight WiFi Lib docs are located here.

Using npm:

$ npm i --save yeelight-wifi

In Node.js:

const YeelightSearch = require('yeelight-wifi');

const yeelightSearch = new YeelightSearch();
yeelightSearch.on('found', (lightBulb) => {
  lightBulb.toggle()
    .then(() => {
      console.log('toggled');
    })
    .catch((err) => {
      console.log(`received some error: ${err}`);
    });
});

Releases

No releases published

Packages

No packages published