TsgcWSPClient_MQTTProperties › Guid

Guid Property

Unique identifier that binds this subprotocol instance to its WebSocket or broker connection.

Syntax

property Guid: String read FGuid write FGuid;

Default Value

Auto-generated on component creation

Remarks

The Guid is assigned automatically in the constructor and is used internally to route frames between the TsgcWebSocketClient (or TsgcWSMQTTBroker) and the matching MQTT subprotocol instance. It is not the MQTT ClientIdentifier used on the wire: that value is supplied by the OnMQTTBeforeConnect event through its ClientIdentifier parameter. Do not modify Guid unless you are explicitly re-parenting the protocol component between connections.

Example


ShowMessage('Protocol Guid: ' + MQTT.Guid);

Back to Properties