OutgoingMessageTopicAlias Property

An integer used to identify the topic instead of the full topic filter in order to reduce the size of the publish packet.

Syntax

ANSI (Cross Platform)
int GetOutgoingMessageTopicAlias(int iOutgoingMessageIndex);

Unicode (Windows)
INT GetOutgoingMessageTopicAlias(INT iOutgoingMessageIndex);
- (int)outgoingMessageTopicAlias:(int)outgoingMessageIndex;
#define PID_MQTT_OUTGOINGMESSAGETOPICALIAS 42

IPWORKSMQ_EXTERNAL void* IPWORKSMQ_CALL IPWorksMQ_MQTT_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal);

IPWORKSMQ_EXTERNAL int IPWORKSMQ_CALL IPWorksMQ_MQTT_CheckIndex(void *lpObj, int propid, int arridx);

Default Value

0

Remarks

An integer used to identify the topic instead of the full topic filter in order to reduce the size of the publish packet.

If a non-zero topic alias is received, the client should establish a new topic alias mapping or use an existing mapping, depending on whether the OutgoingMessageTopic string is empty.

For details on setting topic aliases for outgoing messages, see the TopicAlias configuration setting.

Valid only for MQTT 5.

The OutgoingMessageIndex parameter specifies the index of the item in the array. The size of the array is controlled by the OutgoingMessageCount property.

This property is read-only and not available at design time.

Data Type

Integer

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