edgeport - v1.0.3
    Preparing search index...

    Interface PublishOptions

    Fields needed to build a PUBLISH packet.

    interface PublishOptions {
        dup?: boolean;
        packetId?: number;
        payload: Uint8Array;
        qos: 0 | 1 | 2;
        retain?: boolean;
        topic: string;
    }
    Index
    dup?: boolean

    Whether this is a redelivery of an earlier PUBLISH (the DUP flag).

    packetId?: number

    Packet identifier; required for QoS 1 and 2, ignored for QoS 0.

    payload: Uint8Array

    The message body.

    qos: 0 | 1 | 2

    Quality-of-service level (0, 1, or 2).

    retain?: boolean

    Whether the broker should retain the message as the topic's last-known value.

    topic: string

    The topic the message is published to.