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