0.0.6 • Published 4 years ago

dsensor v0.0.6

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

dsensor dsensor

Digital universal particle concentration sensor

Installation

$ npm i [-g] dsensor

Example

const HCHO = require('dsensor/HCHO');

const sensor = new HCHO("/dev/cu.SLAB_USBtoUART");

sensor.on('message', message => {
  console.log(message.toString()); // outputs: "HCHO: 0.001Mg/m3"
});

sensor.on("open", () => {
  setInterval(() => {
    sensor.send('query');
  }, 3000);
});

npm.io npm.io

Contributing

  • Fork this Repo first
  • Clone your Repo
  • Install dependencies by $ npm install
  • Checkout a feature branch
  • Feel free to add your features
  • Make sure your features are fully tested
  • Publish your local branch, Open a pull request
  • Enjoy hacking <3

MIT


0.0.6

4 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago

1.0.0

7 years ago