Navigation
API > API/Plugins > API/Plugins/MQTTCore
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UMQTTClientObject
References
| Module | MQTTCore |
| Header | /Engine/Plugins/Protocols/MQTT/Source/MQTTCore/Public/MQTTClientObject.h |
| Include | #include "MQTTClientObject.h" |
Syntax
UCLASS&40;BlueprintType, Meta&61;&40;DisplayName&61;"MQTT Client"&41;&41;
class UMQTTClientObject : public UObject
Variables
| Type | Name | Description | |
|---|---|---|---|
| FOnConnectDelegate | OnConnectDelegate | ||
| FOnDisconnectDelegate | OnDisconnectDelegate | ||
| FOnMessageDelegate | OnMessageDelegate | ||
| TArray< TObjectPtr< UMQTTSubscriptionObject > > | Subscriptions |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Connect
(
const FOnConnectDelegate& InOnConnect |
||
| void | Disconnect
(
const FOnDisconnectDelegate& InOnDisconnect |
||
| FString | GetClientId () |
||
| TSharedPtr< IMQTTClient, ESPMode::ThreadSafe > | |||
| FMQTTURL | GetURL () |
URL for this client. | |
| void | |||
| void | Initialize
(
const FMQTTURL& InURL |
Initialize from URL | |
| void |
Publish
(
const FString& InTopic, |
OutMessageId can be used to match this request with the callback response. | |
| void | |||
| UMQTTSubscriptionObject * | Subscribe
(
const FString& InTopic, |
OutMessageId can be used to match this request with the callback response. | |
| TArray< UMQTTSubscriptionObject * > | SubscribeMany
(
const TArray< FString >& InTopics, |
OutMessageId can be used to match this request with the callback response. | |
| void | Unsubscribe
(
const FString& InTopic |
OutMessageId can be used to match this request with the callback response. |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | BeginDestroy () |
Called before destroying the object. |