Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

PublishRequest

import type { PublishRequest } from "https://aws-api.deno.dev/v0.3/services/iotdata.ts?docs=full";

The input for the Publish operation.

interface PublishRequest {
payload?: Uint8Array | string | null;
qos?: number | null;
retain?: boolean | null;
topic: string;
}

§Properties

§
payload?: Uint8Array | string | null
[src]

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 IoT Core.

§
qos?: number | null
[src]

The Quality of Service (QoS) level.

§
retain?: boolean | null
[src]

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: string
[src]

The name of the MQTT topic.