# MQTT Publish

> Kalipso Studio 6.1 documentation · https://doc.sysdevmobile.com/kalipso/6.1/documentation/actions/group-communications/mqtt-publish
>
> Publishes a text or Base64 binary message to an MQTT broker topic, with quality of service (QoS) level options.

Publish a message to a topic on an MQTT broker using a connection previously opened with **MQTT Connect**.

Action available for the following operating systems:

![OS Supported: Android, iOS, Win, Win32](https://doc.sysdevmobile.com/kalipso/assets/images/01_Supported_OS-5c02a51fd5080a410a07ee3ef72b6872.png)

## Parameters

* **MQTT ID** _\<numeric> -_ The identifier of the MQTT connection to use. This must match the **Target MQTT ID** used in **MQTT Connect**.
* **Topic** _\<string> -_ The topic to publish the message to (e.g. `sensors/temperature`).
* **Coded** _\<unquoted string> -_ Defines whether the payload is a Base64 encoded binary value:
  * **Yes** - **Publish Data** is treated as Base64 encoded binary content and decoded before being sent.
  * **No** - **Publish Data** is sent as a plain text payload.
* **Publish Data** _\<string> -_ The content of the message to publish.
* **Quality of Service** _\<unquoted string> -_ The QoS level used to deliver the message:
  * **At most once** (QoS 0) - Message is sent once with no acknowledgment. It may be lost if the client or network fails.
  * **At least once** (QoS 1) - Message is delivered at least once. Duplicates are possible.
  * **Exactly once** (QoS 2) - Message is delivered exactly once. Slowest option but guarantees no loss or duplication.
* **Retain** _\<unquoted string> -_ Defines whether the broker keeps the message as the last known good value for the topic:
  * **Yes** - The broker stores the message and delivers it to any new subscriber to this topic.
  * **No** - The message is delivered only to currently subscribed clients.
