Appearance
Home > resol-vbus-core > LiveEncoderConstructorOptions
LiveEncoderConstructorOptions interface
Options for the constructor of LiveEncoder.
Signature:
typescript
export interface LiveEncoderConstructorOptions
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
number | (Optional) The baudrate. | ||
number | (Optional) The energy gain per millisecond without transmission. Set to 0 to disable energy management. | ||
number | (Optional) The energy loss per byte transmitted. Set to 0 to disable energy management. | ||
number | (Optional) The maximum energy level. Set to 0 to disable energy management. | ||
() => void | (Optional) Callback that informs when the encoder is idle. | ||
(buffer: Uint8Array) => void | (Optional) Callback that informs when data must be transmitted. |