0.1.0 • Published 5 years ago

pinestc v0.1.0

Weekly downloads
1
License
MIT
Repository
-
Last release
5 years ago

pinestc

The pinest nodejs client

Usage

const {Client} = require('..');

(async () => {
  const client = await Client.connect();
  client.on('button', notification => {
    console.log(notification);
  });
  const feature = client.feature('ledrgb');
  if (!feature) {
    throw new Error('no feature ledrgb');
  }
  await feature.remcall('fadeout', ['0000FF']);
  
  // close if no other process
  // client.close();
})();