For the complete documentation index, see llms.txt. This page is also available as Markdown.

Send

This is the Task to connect to a MQTT broker, publishes a message to a given topic, then disconnects.

Task version: 1.0.0

Required Frends version: 5.7+

Required .NET version: 8.0

Compatible Agents: Crossplatform

Task Parameters

Name
Description

Host : String

The address of the MQTT broker.

Default: - Example: broker_host

BrokerPort : Int32

The port of the MQTT broker.

Default: - Example: 1883

Topic : String

The topic to publish the message to.

Default: - Example: your_topic

Message : String

The message to be published.

Default: - Example: your_message

UseTls12 : Boolean

Whether to use TLS authentication

Default: - Example: false

QoS : QoS

The Quality of Service (QoS) level for the MQTT session.

Possible values:

  • AtMostOnce: The Quality of Service (QoS) level for the MQTT session.

  • AtLeastOnce: The Quality of Service (QoS) level for the MQTT session.

  • ExactlyOnce: The Quality of Service (QoS) level for the MQTT session.

Default: - Example: QoS.AtMostOnce

Username : String

Username for authentication.

Default: - Example: testuser

🗝Password : String

Password for authentication.

Default: - Example: Password123

AllowInvalidCertificate : Boolean

When true, allows connections even if the server's TLS certificate is invalid (e.g., self-signed,

expired, or hostname mismatch). WARNING: This reduces security and should only be used in

development/testing environments or when connecting to internal servers with self-signed certificates.

Default: False Example: true

Task Result

Name
Description

Success : Boolean

Whether connection to the MQTT broker was successful or not. Example: true

Data : String

Returns a confirmation message on success. Example: Message sent

Error : String

Error(s) if connecting to broker failed. Returns an empty string if no errors exist. Example: Connection refused

Task Changelog

Changelog for Task Frends.MQTT.Send.

[1.0.0] - 2025-04-07

Added

  • Initial implementation

Last updated

Was this helpful?