Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface PublishCommandInput

Hierarchy

Index

Properties

Properties

Optional payload

payload: Uint8Array

The message body. MQTT accepts text, binary, and empty (null) message payloads.

Publishing an empty (null) payload with retain = true deletes the retained message identified by topic from Amazon Web Services IoT Core.

Optional qos

qos: undefined | number

The Quality of Service (QoS) level.

Optional retain

retain: undefined | false | true

A Boolean value that determines whether to set the RETAIN flag when the message is published.

Setting the RETAIN flag causes the message to be retained and sent to new subscribers to the topic.

Valid values: true | false

Default value: false

topic

topic: string | undefined

The name of the MQTT topic.