Navigation
API > API/Plugins > API/Plugins/MQTTCore
| Name | UMQTTClientObject |
| Type | class |
| Header File | /Engine/Plugins/Protocols/MQTT/Source/MQTTCore/Public/MQTTClientObject.h |
| Include Path | #include "MQTTClientObject.h" |
Syntax
UCLASS (BlueprintType, Meta=(DisplayName="MQTT Client"))
class UMQTTClientObject : public UObject
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UMQTTClientObject
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~UMQTTClientObject() |
MQTTClientObject.h |
Classes
| Name | Remarks |
|---|---|
| FOnConnectDelegate | |
| FOnDisconnectDelegate | |
| FOnMessageDelegate | |
| FOnPublishDelegate | |
| FOnSubscribeDelegate | |
| FOnUnsubscribeDelegate |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| MqttClientPtr | TSharedPtr< IMQTTClient, ESPMode::ThreadSafe > | MQTTClientObject.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Connect
(
const FOnConnectDelegate& InOnConnect |
MQTTClientObject.h |
|
|
void Disconnect
(
const FOnDisconnectDelegate& InOnDisconnect |
MQTTClientObject.h |
|
|
FString GetClientId() |
MQTTClientObject.h |
|
|
TSharedPtr< IMQTTClient, ESPMode::ThreadSafe > GetClientImpl() |
MQTTClientObject.h | ||
FMQTTURL GetURL() |
URL for this client. | MQTTClientObject.h |
|
void InitDelegates() |
MQTTClientObject.h | ||
void Initialize
(
const FMQTTURL& InURL |
Initialize from URL | MQTTClientObject.h | |
void Publish
(
const FString& InTopic, |
OutMessageId can be used to match this request with the callback response. | MQTTClientObject.h |
|
void RemoveDelegates() |
MQTTClientObject.h | ||
UMQTTSubscriptionObject * Subscribe
(
const FString& InTopic, |
OutMessageId can be used to match this request with the callback response. | MQTTClientObject.h |
|
TArray< UMQTTSubscriptionObject * > SubscribeMany
(
const TArray< FString >& InTopics, |
OutMessageId can be used to match this request with the callback response. | MQTTClientObject.h |
|
void Unsubscribe
(
const FString& InTopic |
OutMessageId can be used to match this request with the callback response. | MQTTClientObject.h |
|
Overridden from UObject
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void BeginDestroy() |
MQTTClientObject.h |