Subscribing to a topic I'm receiving a Json text in the message payload.
In 18.104.22.168 I'm using the OnRawPacketReceived event to get the payload like this:
var lJsonText: string; begin if APacket.PacketType = TTMSMQTTPacketType.mtPUBLISH then begin lJsonText := APacket.GetPayload(false); end; end;
What does the boolean parameter to GetPayLoad do? The hint in the Delphi IDE says AIncludeAllProperties. Can the payload for a received packet have several properties?