Initializes the client. EventName - Sets the subs that will handle the events. ServerURI - The server URI. For example: tcp://localhost:51044
IsInitializedAsBoolean [read only]
Publish (TopicAsString, Payload() AsByte)
Publishes a message to the given topic. The QOS will be set to 0 (note that it is different than jMQTT default). Topic - The message will be delivered to this topic. Payload - Message payload. For example: Client.Publish("Topic", "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 [read only]
QOS_1_LEAST_ONCEAsInt [read only]
QOS_2_EXACTLY_ONCEAsInt [read only]
Subscribe (TopicAsString, QOSAsInt)
Subscribes to the given topic. Topic - Topic to subscribe. QOS - QOS setting.