GetMQTTMessage
Structure
GetMQTTMessage(sHost, sPort, sUser, sPassword, sClient, sTopic, bSSL, iTimeout)
Parameters
| Parameter | Type | Description |
|---|---|---|
sHost | String | Host of the server to connect to. |
sPort | String | Port to send the message to. |
sUser | String | User to connect as |
sPassword | String | Password to connect as |
sClient | String | Client ID to use |
sTopic | String | Target Topic to send message to |
bSSL | Boolean | Whether to use SSL when connecting |
iTimeout | Integer | Number of seconds to wait before timing out |
Return value
The message found, or an error message describing the problem sending.
Description
This function connects to a server using the MQTT protocol and attempts to get a message from it. It always uses a clean session with QoS level 2.