Send
This is the Task to connect to a MQTT broker, publishes a message to a given topic, then disconnects.
Last updated
Was this helpful?
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
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
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
Changelog for Task Frends.MQTT.Send.
Initial implementation
Last updated
Was this helpful?
Was this helpful?

