Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace DataFormat

This namespace contains all the functions that are used to parse the data received from the adapter.

Index

Functions

binaryString

  • binaryString(data: Buffer): string[]
  • Parses the data received from the adapter as a binary string.

    Parameters

    • data: Buffer

      The data to parse.

    Returns string[]

    An array of strings containing the binary status from each port.

object

uintArray

  • uintArray(data: Buffer): Uint8Array[]
  • Parses the data received from the adapter as multiple {@link Uint8Array | Uint8Arrays}.

    Parameters

    • data: Buffer

      The data to parse.

    Returns Uint8Array[]

    An array of {@link Uint8Array | Uint8Arrays} containing the binary status from each port.

Generated using TypeDoc