IncomingMessageMessageExpInterval Property

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

Object Oriented Interface

public function getIncomingMessageMessageExpInterval($incomingmessageindex);

Procedural Interface

ipworksiot_mqtt_get($res, 15 , $incomingmessageindex);

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 $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

Integer

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