Skip to main content



      Home
Home » Eclipse Projects » Paho » What is the meaning of struct_version 8 in the data fields of "MQTTClient_connectOptions Struct
What is the meaning of struct_version 8 in the data fields of "MQTTClient_connectOptions Struct [message #1854541] Wed, 24 August 2022 09:26 Go to next message
Eclipse UserFriend
In the definition of "MQTTClient_connectOptions Struct Reference", there is a parameter called "struct_version". The value of this parameter could be 0,1,2,3,4,5,6,7,8. But the online document only provides the meaning of "strucT_version" with the value of 0,1,2,3,4,5,6,7, except the value of 8.

Below are quoted from the online document:
"The version number of this structure. Must be 0, 1, 2, 3, 4, 5, 6, 7 or 8. 0 signifies no SSL options and no serverURIs 1 signifies no serverURIs 2 signifies no MQTTVersion 3 signifies no returned values 4 signifies no binary password option 5 signifies no maxInflightMessages and cleanstart 6 signifies no HTTP headers option 7 signifies no HTTP proxy and HTTPS proxy options"


Who can tell me the meaning of "struct_version" with the value 8?

Thanks in advance!
Re: What is the meaning of struct_version 8 in the data fields of "MQTTClient_connectOptions St [message #1854542 is a reply to message #1854541] Wed, 24 August 2022 10:53 Go to previous messageGo to next message
Eclipse UserFriend
8 just means all the fields which currently exist in the structure. The version number increases when new fields are added.

Unless you have a binary application compiled with an old version of the library and want to run that binary against a newer version of the Paho shared library, you don't need to worry about this. Just initialize the structure with the initializer in the Paho header file, and the correct value will be set for you.
Re: What is the meaning of struct_version 8 in the data fields of "MQTTClient_connectOptions St [message #1854543 is a reply to message #1854542] Wed, 24 August 2022 11:08 Go to previous message
Eclipse UserFriend
Thanks!
Previous Topic:ModuleNotFoundError: No module named 'paho.mqtt.clint'
Next Topic:RabbitMQ Server shutdown when connecting and disconnecting via org.eclipse.paho.client.mqttv3 broker
Goto Forum:
  


Current Time: Wed Jun 25 01:53:25 EDT 2025

Powered by FUDForum. Page generated in 0.13644 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top