@fermyon/spin-sdk
    Preparing search index...

    Interface MqttConnection

    Interface representing an MQTT connection with a method for publishing messages. MqttConnection

    interface MqttConnection {
        publish: (topic: string, payload: Uint8Array, qos: QoS) => void;
    }
    Index

    Properties

    Properties

    publish: (topic: string, payload: Uint8Array, qos: QoS) => void

    Publishes a message to the specified MQTT topic.

    Type declaration

      • (topic: string, payload: Uint8Array, qos: QoS): void
      • Parameters

        • topic: string

          The topic to publish the message to.

        • payload: Uint8Array

          The message payload as a Uint8Array.

        • qos: QoS

          The Quality of Service level for message delivery.

        Returns void