OutgoingMessageMessageExpInterval Property

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

Syntax

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

Unicode (Windows)
INT GetOutgoingMessageMessageExpInterval(INT iOutgoingMessageIndex);
- (int)outgoingMessageMessageExpInterval:(int)outgoingMessageIndex;
#define PID_MQTT_OUTGOINGMESSAGEMESSAGEEXPINTERVAL 33

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_CheckIndex(void *lpObj, int propid, int arridx);

Default Value

0

Remarks

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 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 IoT 2020 C++ Edition - Version 20.0 [Build 8265]