0.0.3 • Published 4 years ago

ksx4506 v0.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

KS X 4506 Parser

This library is a parser for the KS X 4506 which is a standard in South Korea for devices used in smart home environments that usually communicates via the RS485 interface.

Installation

yarn add ksx4506

Code Example

const port = new SerialPort("/dev/tty.usbserial-AQ00WHW9", {
    baudRate: 9600,
    dataBits: 8,
    parity: "none",
    stopBits: 1,
    autoOpen: true
})
port.pipe(parser)
parser.on("data", (dataframe: DataFrame) => {
    console.log(dataframe)
})