Class MQTT_IOClient
java.lang.Object
org.openremote.agent.protocol.mqtt.AbstractMQTT_IOClient<String>
org.openremote.agent.protocol.mqtt.MQTT_IOClient
- All Implemented Interfaces:
IOClient<MQTTMessage<String>>
-
Field Summary
Fields inherited from class org.openremote.agent.protocol.mqtt.AbstractMQTT_IOClient
cleanSession, client, clientId, connected, connectionStatusConsumers, disconnected, executorService, host, LOG, port, secure, topicConsumerMap, topicSubscribeFailureConsumer, usernamePassword, websocketURI
-
Constructor Summary
ConstructorsConstructorDescriptionMQTT_IOClient
(String host, int port, boolean secure, boolean cleanSession, org.openremote.model.auth.UsernamePassword usernamePassword, URI websocketURI, MQTTLastWill lastWill, KeyManagerFactory keyManagerFactory, TrustManagerFactory trustManagerFactory) MQTT_IOClient
(String clientId, String host, int port, boolean secure, boolean cleanSession, org.openremote.model.auth.UsernamePassword usernamePassword, URI websocketURI, MQTTLastWill lastWill) MQTT_IOClient
(String clientId, String host, int port, boolean secure, boolean cleanSession, org.openremote.model.auth.UsernamePassword usernamePassword, URI websocketURI, MQTTLastWill lastWill, KeyManagerFactory keyManagerFactory, TrustManagerFactory trustManagerFactory) -
Method Summary
Modifier and TypeMethodDescriptionmessageFromBytes
(byte[] bytes) byte[]
messageToBytes
(String message) Methods inherited from class org.openremote.agent.protocol.mqtt.AbstractMQTT_IOClient
addConnectionStatusConsumer, addMessageConsumer, addMessageConsumer, connect, disconnect, doClientSubscription, getClientUri, getConnectionStatus, onConnectionStatusChanged, onSubscribeFailed, removeAllConnectionStatusConsumers, removeAllMessageConsumers, removeConnectionStatusConsumer, removeMessageConsumer, removeMessageConsumer, removeSubscription, sendMessage, setTopicSubscribeFailureConsumer
-
Constructor Details
-
MQTT_IOClient
public MQTT_IOClient(String host, int port, boolean secure, boolean cleanSession, org.openremote.model.auth.UsernamePassword usernamePassword, URI websocketURI, MQTTLastWill lastWill, KeyManagerFactory keyManagerFactory, TrustManagerFactory trustManagerFactory) -
MQTT_IOClient
public MQTT_IOClient(String clientId, String host, int port, boolean secure, boolean cleanSession, org.openremote.model.auth.UsernamePassword usernamePassword, URI websocketURI, MQTTLastWill lastWill, KeyManagerFactory keyManagerFactory, TrustManagerFactory trustManagerFactory) -
MQTT_IOClient
public MQTT_IOClient(String clientId, String host, int port, boolean secure, boolean cleanSession, org.openremote.model.auth.UsernamePassword usernamePassword, URI websocketURI, MQTTLastWill lastWill)
-
-
Method Details
-
messageToBytes
- Specified by:
messageToBytes
in classAbstractMQTT_IOClient<String>
-
messageFromBytes
- Specified by:
messageFromBytes
in classAbstractMQTT_IOClient<String>
-