OnMessageArrived
The Message Queueing Telemetry Transport (MQTT) object event occurs when a message has arrived at its destination. It is used to process incoming data.
Note: To display this event in the Dev Studio Scripting View, you must include "WithEvents" in your declaration of the MQTT object variable. For example:
"Dim WithEvents moClient as new MQTT"
Group: MQTT Object
Type: Event
Syntax: Private Sub oMQTT_OnMessageArrived(ByVal Topic As String, ByVal Message As String)
Example:
'Private Sub moClient_OnMessageArrived(ByVal Topic As String, ByVal Message As String)
' On Error Resume Next
' App.MsgBox("Incoming Topic: " & Topic & "\n" & Message, vbOKOnly)
'End Sub
Private Sub moClient_OnMessageArrived(ByVal Topic As String, ByVal Message As String)
On Error Resume Next
End Sub
Versions Supported: RFgen 5.2.3.0 and newer.