Class MqttConnection
java.lang.Object
de.themoep.connectorplugin.connector.MqttConnection
-
Constructor Summary
ConstructorDescriptionMqttConnection
(ConnectorPlugin plugin, String brokerURI, String clientID, String username, String password, int keepAlive, BiConsumer<String, Message> onMessage) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
sendMessage
(String senderName, Message message)
-
Constructor Details
-
MqttConnection
public MqttConnection(ConnectorPlugin plugin, String brokerURI, String clientID, String username, String password, int keepAlive, BiConsumer<String, Message> onMessage)
-
-
Method Details
-
sendMessage
-
close
public void close()
-