Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface MqttPublishAction

The interface contains the action of a topic when published.

Hierarchy

  • MqttPublishAction

Index

Properties

Optional interval

interval: number

The time in milliseconds between every publication of this topic. Note: overwrites the interval property specified by the options.

message

message: string | Buffer | (() => string | Buffer)

The message that will be published.

Optional onError

onError: (error: Error) => void

What will be executed in case of a publishing error. Note: overwrites the onError callback specified by the options.

Type declaration

    • (error: Error): void
    • Parameters

      • error: Error

      Returns void

topic

topic: string

The topic that will be published.

Generated using TypeDoc