Navigation
API > API/Plugins > API/Plugins/MQTTCore
| Name | FMQTTClientMessage |
| Type | struct |
| Header File | /Engine/Plugins/Protocols/MQTT/Source/MQTTCore/Public/MQTTClientMessage.h |
| Include Path | #include "MQTTClientMessage.h" |
Syntax
USTRUCT (BlueprintType )
struct FMQTTClientMessage
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bRetain | bool | Retain flag. | MQTTClientMessage.h |
|
| Payload | TArray< uint8 > | Packet content. | MQTTClientMessage.h |
|
| QoS | EMQTTQualityOfService | Quality of Service. | MQTTClientMessage.h |
|
| TimeStamp | FDateTime | TimeStamp as UTC. | MQTTClientMessage.h |
|
| Topic | FString | Packet topic. | MQTTClientMessage.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool GetPayloadAsJson
(
TSharedPtr< FJsonObject >& OutJson |
Get's the payload as a Json object, first converting to string. Returns false if unsuccessful. | MQTTClientMessage.h | |
const FString & GetPayloadAsString() |
Get's the payload as a string, ie. for Json. | MQTTClientMessage.h | |
bool IsValid() |
Gets the validity of the Packet. | MQTTClientMessage.h | |
void SetPayloadFromString
(
const FString& InPayloadString |
Set's the payload from the input string. | MQTTClientMessage.h |