MQTT Object

The Message Queueing Telemetry Transport (MQTT) object is used to publish messages and/or receive messages (subscribe) via communication conducted between the client and the RFgen server, and the MQTT broker and RFgen server.

The MQTT language extensions are organized by Properties and Methods.

MQTT Object Properties

The properties for the Socket object are: ClientId, Error, ServerAddress, and Timeout.

MQTT Object Methods

The methods for the MQTT socket object are: Connect, Disconnect, GetLastMessage, Publish, SetLWT, SetPassword, SetUsername, SSL_SetCalPath, SSL_SetKeyStore, SSL_SetPrivateKey , SetPrivateKeyPassword, and Subscribe.

 

MQTT Events

There are no events unless you declare “WithEvents” with the MQTT object. Then the OnMessageArrived event is available. For example:

Dim WithEvents moClient as new MQTT

 

 

Versions Supported:         RFgen 5.1.1.35 and 5.2.3 and newer.