MQTT
Overview
This bundle of advanced actions allows you to connect to a MQTT broker to achieve the following actions:
- Publish a message
- Subscribe to a topic
- Receive the content of the message sent by the broker
- Unsubscribe from topic
- Disconnect from broker
A typical use is to subscribe to a topic and receive messages. You can extract information through a variable and reuse it later in your workflow.
This bundle of actions allows you to simulate realistic load on IOT projects using MQTT protocol.
Type | Advanced Action |
Version | 1.0.0 |
Maturity | Experimental |
Author | Neotys Professional Services |
License | BSD Simplified |
NeoLoad | 5.1 |
Requirements | Paho Eclipse MQTT client
Paho library would need to be stored in <NeoLoad installation folder>/extlib |
Bundled in NeoLoad | Bundled in NeoLoad 5.3 |
Download |
jar: Sources: |
Parameters
MQTT connect:
- Host: Hostname or IP address of the MQTT broker
- Port: Port of the MQTT broker.
- Protocol: Protocol used to connect to the broker (usually « tcp », or « ws » or « tls »)
- Username (optional): Login to connect to a secure MQTT broker
- MD5password (optional): Password encrypted in MD5
MQTT subscribe:
- Host: Hostname or IP address of the MQTT broker
- Port: Port of the MQTT broker.
- Protocol: Protocol used to connect to the broker (usually « tcp », or « ws » or « tls »)
- Domain MQTT domain that the user would like to subscribe to
- Topic Topic within the domain that the user would like to subscribe to
- Qos Level of quality of service
MQTT publish:
- Host: Hostname or IP address of the MQTT broker
- Port: Port of the MQTT broker.
- Protocol: Protocol used to connect to the broker (usually « tcp », or « ws » or « tls »)
- Domain MQTT domain that the user would like to subscribe to
- Topic Topic within the domain that the user would like to subscribe to
- Qos Level of quality of service
- Message Message to send to the broker
MQTT unsubscribe:
- Host: Hostname or IP address of the MQTT broker
- Port: Port of the MQTT broker.
- Protocol: Protocol used to connect to the broker (usually « tcp », or « ws » or « tls »)
- Domain MQTT domain that the user would like to unsubscribe from
- Topic Topic within the domain that the user would like to unsubscribe from
MQTT receiver:
- Domain MQTT domain that the user would like to subscribe to
- Topic Topic within the domain that the user would like to subscribe to
- Timeout Maximum delay in seconds to wait for messages
MQTT disconnect:
- Host: Hostname or IP address of the MQTT broker
- Port: Port of the MQTT broker.
- Protocol: Protocol used to connect to the broker (usually « tcp », or « ws » or « tls »)
Status Codes
- NL-MQTTConnect_ACTION: Issue while trying to connect to the broker
- NL-MQTTsubscribe_ACTION: Error while trying to subscribe to a topic of the broker
- NL-MQTTPublish_ACTION: Error while trying to publish a message to the broker
- NL-MQTTunsubscribe_ACTION: Error while trying to unsubscribe from a topic
- NL-MQTTDisconnect_ACTION: Error while trying to disconnect from the broker
Changelog
- 1.0.0 – Initial release