TriggerType (MQLONG)
This controls the conditions under which trigger messages are written as a result of messages arriving on this queue.
Local | Model | Alias | Remote | Cluster |
---|---|---|---|---|
X | X |
It has one of the following values:
- MQTT_NONE
- No trigger messages are written as a result of messages on this
queue. This has the same effect as setting
TriggerControl
to MQTC_OFF. - MQTT_FIRST
- A trigger message is written whenever the number of messages of
priority
TriggerMsgPriority
or greater on the queue changes from 0 to 1. - MQTT_EVERY
- A trigger message is written whenever a message of priority
TriggerMsgPriority
or greater arrives on the queue. - MQTT_DEPTH
- A trigger message is written whenever the number of messages of
priority
TriggerMsgPriority
or greater on the queue equals or exceedsTriggerDepth
. After the trigger message has been written,TriggerControl
is set to MQTC_OFF to prevent further triggering until it is explicitly turned on again.
To determine the value of this attribute, use the MQIA_TRIGGER_TYPE selector with the MQINQ call. To change the value of this attribute, use the MQSET call.