Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 13:26 Go to next message
Yongsheng Fu is currently offline Yongsheng FuFriend
Messages: 2
Registered: August 2022
Junior Member
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 14:53 Go to previous messageGo to next message
Ian Craggs is currently offline Ian CraggsFriend
Messages: 83
Registered: March 2013
Member
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 15:08 Go to previous message
Yongsheng Fu is currently offline Yongsheng FuFriend
Messages: 2
Registered: August 2022
Junior Member
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: Fri Apr 26 01:32:48 GMT 2024

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

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

Back to the top