Skip to main content
Version: 11.x.x

📦 parser-cctalk

| npm | github |

import { CCTalkParser } from '@serialport/parser-cctalk'
// or
const { CCTalkParser } = require('@serialport/parser-cctalk')

A transform stream that emits ccTalk packets as they are received.

Constructor Arguments​

maxDelayBetweenBytesMs: number = 50

Example​

const { SerialPort } = require('serialport')
const { CCTalkParser } = require('@serialport/parser-cctalk')
const port = new SerialPort({ path: '/dev/ROBOT', baudRate: 14400 })

const parser = port.pipe(new CCTalkParser(100))
parser.on('data', console.log) // emits a buffer with a complete CCTalk packet