IncomingMessageMessageExpInterval Property

The lifetime of the message in seconds specified by the sender.


ANSI (Cross Platform)
int GetIncomingMessageMessageExpInterval(int iIncomingMessageIndex);

Unicode (Windows)
INT GetIncomingMessageMessageExpInterval(INT iIncomingMessageIndex);
- (int)incomingMessageMessageExpInterval:(int)incomingMessageIndex;

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



The lifetime of the message in seconds specified by the sender.

For outgoing messages, the value is useful for instructing the server to delete its copies of the message for any subscribers it has not been able to start delivery to.

For incoming messages, the value sent by the server is the lifetime specified by the sender minus the time the message has been waiting in the server.

Valid only for MQTT 5.

The IncomingMessageIndex parameter specifies the index of the item in the array. The size of the array is controlled by the IncomingMessageCount property.

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

Data Type


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