Class UDPReqResClient

UDP client used for communication with the device.

Constructors

Properties

client: Socket
counter: number
ip: string
port: number
requestTimeout: number
retryCount: number

Methods

  • Type Parameters

    • T

    Parameters

    • data: Buffer
    • reqId: number

    Returns Promise<T>

  • Type Parameters

    • T

    Parameters

    • data: Record<string, unknown>

    Returns Promise<T>

  • Type Parameters

    • T

    Parameters

    • req: (() => Promise<T>)
        • (): Promise<T>
        • Returns Promise<T>

    • count: number = 0
    • Optional err: string

    Returns Promise<T>