IncomingMessageState Property

This message's current state.

Object Oriented Interface

public function getIncomingMessageState($incomingmessageindex);

Procedural Interface

ipworksmq_mqtt_get($res, 21 , $incomingmessageindex);

Default Value

0

Remarks

This message's current state.

Possible Outgoing Message States:

ValueDescription
0 PUBLISH sent, waiting for PUBACK (QoS 1 only)
1 PUBLISH sent, waiting for PUBREC (QoS 2 only)
2 PUBREC received, sending PUBREL (QoS 2 only)
3 PUBREL sent, waiting for PUBCOMP (QoS 2 only)
4 Final acknowledgment received

Possible Incoming Message States:

ValueDescription
5 PUBLISH received, sending PUBACK (QoS 1 only)
6 PUBLISH received, sending PUBREC (QoS 2 only)
7 PUBREC sent, waiting for PUBREL (QoS 2 only)
8 PUBREL received, sending PUBCOMP (QoS 2 only)
9 Final acknowledgment sent

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 MQ 2020 PHP Edition - Version 20.0 [Build 8155]