Version Property

The MQTT protocol version that the class will conform to.

Syntax

ANSI (Cross Platform)
int GetVersion();
int SetVersion(int iVersion); Unicode (Windows) INT GetVersion();
INT SetVersion(INT iVersion);

Possible Values

MV_V3(0), 
MV_V5(1)
@property (nonatomic,readwrite,assign,getter=version,setter=setVersion:) int version;
- (int)version;
- (void)setVersion:(int)newVersion;

Possible Values

MV_V3(0), 
MV_V5(1)
#define PID_MQTT_VERSION 57

IPWORKSIOT_EXTERNAL void* IPWORKSIOT_CALL IPWorksIoT_MQTT_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal);
IPWORKSIOT_EXTERNAL int IPWORKSIOT_CALL IPWorksIoT_MQTT_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);

Default Value

0

Remarks

This property specifies the version of the MQTT protocol to use. Possible values are:

0 (mvV3 - default) MQTT 3.1.1
1 (mvV5) MQTT 5

This property must be set before connecting.

This property is not available at design time.

Data Type

Integer

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks IoT 2020 C++ Edition - Version 20.0 [Build 8265]