UE · 2023年7月15日 0

[Unreal Engine] DT MQTT plug -in detailed description

DT MQTT is the UE’s MQTT client plug -in. You can use t…

1. Node Description

Create Mqtt Client

[Unreal Engine] DT MQTT plug -in detailed description

Create an MQTT client object. The returned object needs to be promoted to a variable, and it will be operated with this object in the future.


Connect

[Unreal Engine] DT MQTT plug -in detailed description

* Connects to an MQTT server using the provided connect options.
* Param Url : the address of the server to connect to, specified as a URI.
* Param ClientId : a client identifier that is unique on the server being connected to
* Param UserName : The user name for connecting to the MQTT broker.
* Param Password : The password for connecting to the MQTT broker.


Subscribe

[Unreal Engine] DT MQTT plug -in detailed description

* Subscribe to a topic, which may include wildcards.
* Param TopicFilter : the topic to subscribe to, which can include wildcards.
* Param QoS : The quality of service for the subscription


Un Subscribe

[Unreal Engine] DT MQTT plug -in detailed description

* Requests the server unsubscribe the client from a topic.
* Param TopicFilter : the topic to unsubscribe from. It must match a topicFilter specified on an earlier subscribe.


Publish

[Unreal Engine] DT MQTT plug -in detailed description

* Publishes a message to a topic on the server
* Param Topic : The topic to deliver the message to
* Param Message : sent message
* Param QoS : the Quality of Service to deliver the message at. Valid values are 0, 1 or 2.
* Param Retained : whether or not this message should be retained by the server.


Disconnect

[Unreal Engine] DT MQTT plug -in detailed description

Disconnects from the server.


Bind Connected Delegate

[Unreal Engine] DT MQTT plug -in detailed description

This method is called when the client is connected.


Bind Connection Lost Delegate

[Unreal Engine] DT MQTT plug -in detailed description

This method is called when the connection to the server is lost.


Bind Message Delegate

[Unreal Engine] DT MQTT plug -in detailed description

This method is called when a message arrives from the server.


2. Use Cases

3. Plugin Download

Link