Initializes the client. EventName - Sets the subs that will handle the events. ServerURI - The server URI. For example: tcp://localhost:51044 or ssl://localhost:51044 ClientId - Client ID (each client needs a unique id).
IsInitializedAsBoolean
Publish (TopicAsString, Payload() AsByte)
Publishes a message to the given topic. The QOS will be set to 1. Topic - The message will be delivered to this topic. Payload - Message payload. For example: Client.Publish("Topic1", "Message".GetBytes("UTF8"))
Publishes a message to the given topic. Topic - The message will be delivered to this topic. Payload - Message payload. QOS - The QOS level. Retained - Whether the server should retain the message (only the last message per topic is retained).
QOS_0_MOST_ONCEAsInt
QOS_1_LEAST_ONCEAsInt
QOS_2_EXACTLY_ONCEAsInt
Subscribe (TopicAsString, QOSAsInt)
Subscribes to the given topic. Topic - Topic to subscribe. QOS - QOS setting.