ClientId Property
A string that uniquely identifies this instance of the component to the server.
Data Type
StringDefault Value
""Remarks
The ClientId string is used by the server to uniquely identify each client that is connected to it. In MQTT 5, when the SessionExpInterval config is set to a positive value, the server will also associate it with any session state data that needs to be saved for the length of time specified when the task is disconnected.
If ClientId is empty and CleanSession is True, the task will automatically generate a unique value for ClientId before connecting. If CleanSession is False, the task throws an exception.