Skip to content

Home > resol-vbus-core-toolbox-scripts > csvWriter > CsvWriter

csvWriter.CsvWriter class

Writes VBus data into a tabular text file.

Signature:

typescript
export declare class CsvWriter

Constructors

Constructor

Modifiers

Description

(constructor)(options)

Create a new CSV writer.

Properties

Property

Modifiers

Type

Description

columnSeparator

string

The string to separate columns with.

filenamePattern

string

The pattern of the filename, optionally including placeholders for date components.

headerSet

HeaderSet<Packet>

The set of packets received.

interval

number

The interval in milliseconds.

isStarted

boolean

Indicates that the logging has started.

lineSeparator

string

The string to separate lines with.

previousDatecode

string

The datecode of the previously written record.

previousId

string

The VBus topology ID of the previously written record.

specification

Specification

The VBus specification to use for formatting

ttl

number | null

The time-to-live in milliseconds.

Methods

Method

Modifiers

Description

setInterval(interval)

Set the interval.

setSpecification(specification)

Set the VBus specification to use.