pamoja for TypeScript - v0.1.17
    Preparing search index...

    Class MavlinkParser

    A streaming frame parser, and the frames it has completed.

    Index
    • get pending(): number

      How many completed frames are waiting to be taken.

      Returns number

    • Feeds bytes and queues what completed, for a caller that drains later.

      Parameters

      • bytes: Buffer
      • Optionaldialect: Dialect | null

      Returns void

    • Feeds bytes off a link and returns the frames that completed.

      Whatever a serial port or socket delivers can be pushed as it arrives, however it is split. Noise between frames is skipped rather than reported, which is what lets a parser join a stream already in progress.

      Parameters

      • bytes: Buffer
      • Optionaldialect: Dialect | null

      Returns MavlinkFrame[]