New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

pms7003

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

pms7003

pms7003 Driver

unpublished
latest
Source
npmnpm
Version
0.7.5
Version published
Maintainers
1
Created
Source

PMS7003 Particulate matter Senser

  • plantower Particulate matter Senser
  • plantower 미세먼지 측정 센서

install

npm install pms7003

PMS7003 Senser Driver Usage

package import

import { SerialPort } from "serialport";
import { PMS7003 } from "pms7003.js";

or

const { SerialPort } = require("serialport");
const { PMS7003 } = require("pms7003")

Connect Usage


try {
  const portName = "/dev/ttyAMA0";
  const serialPort = new SerialPort(
    {
      path: portName,
      baudRate: 9600,
    }
  );
  const pms7003 = new PMS7003(
    serialPort, // SerialPort
    (result) => console.log(result), // Callback function
    true
  );
} catch (err) {
  console.log(err);
}

See test_sensor.js

Keywords

pms7003

FAQs

Package last updated on 19 Jan 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts