ltm rule event MQTT SERVER DATA
iRule(1) BIG-IP TMSH Manual iRule(1)
MQTT_SERVER_DATA
An iRule event that triggers when an a prior MQTT::collect command finishes.
DESCRIPTION
This iRule event triggers when payload data collection invoked using MQTT::collect iRule command finishes.
This iRule event is for server-side.
Examples
when MQTT_SERVER_INGRESS {
set type [MQTT::type]
switch $type {
"PUBLISH" {
MQTT::collect 200
}
}
}
when MQTT_SERVER_DATA {
set type [MQTT::type]
switch $type {
"PUBLISH" {
set collected [MQTT::payload]
MQTT::release
log local0.info "collected : $collected"
}
}
}
HINTS
SEE ALSO
CHANGE LOG
@BIGIP-13.0.0
--First introduced the event.
BIG-IP 2020-06-23 iRule(1)