Package | Description |
---|---|
com.esf.net.mqtt.client.service |
Modifier and Type | Method and Description |
---|---|
static EsfMqttException |
EsfMqttException.internalError(java.lang.String message)
Factory method to build an EdcClientException with the EdcClientErrorCode.INTERNAL_ERROR code providing only a message.
|
static EsfMqttException |
EsfMqttException.internalError(java.lang.Throwable cause,
java.lang.String message)
Factory method to build an EdcClientException with the EdcClientException.INTERNAL_ERROR code providing a cause and a message.
|
Modifier and Type | Method and Description |
---|---|
void |
IEsfMqttService.connectEsfMqttMasterClient()
Connects the ESF MQtt Master Client if auto-connect is disabled.
|
int |
IEsfMqttMasterClient.controlSubscribe(java.lang.String topic,
int qos)
Subscribes to a topic with the MQtt broker.
|
int |
IEsfMqttCloudClient.controlSubscribe(java.lang.String assetId,
java.lang.String topic,
int qos)
Subscribes to a control topic with the MQtt broker.
|
IEsfMqttCloudClient |
IEsfMqttService.createCloudIEsfMqttClient(java.lang.String clientId)
Returns a IEsfMqttCloudClient implementation.
|
void |
IEsfMqttService.disconnectEsfMqttMasterClient()
Disconnects the ESF MQtt Master Client if auto-connect is disabled.
|
java.lang.String |
IEsfMqttCloudClient.getAssetId()
Returns the Asset ID of the device
|
java.lang.String |
IEsfMqttClient.getClientId()
Returns the last unique ID given to the MQtt agent.
|
IEsfMqttMasterClient |
IEsfMqttService.getEsfMqttMasterClient()
Returns an interface to the ESF MQtt Master Client.
|
IEsfMqttMasterClient |
IEsfMqttService.getEsfMqttMasterClient(java.lang.String appId)
Returns an interface to the ESF MQtt Master Client.
|
java.lang.String |
IEsfMqttClient.getPassword()
Returns the client's password.
|
java.lang.String |
IEsfMqttClient.getUsername()
Returns the client's username.
|
java.lang.String |
IEsfMqttClient.getWillMessage()
Reports Will Message
|
int |
IEsfMqttClient.getWillQos()
Reports Will QoS
|
java.lang.String |
IEsfMqttClient.getWillTopic()
Reports Will Topic
|
int |
IEsfMqttMasterClient.publish(java.lang.String topic,
byte[] payload,
int qos,
boolean retain)
Publishes a message to the MQtt broker.
|
int |
IEsfMqttClient.publish(java.lang.String topic,
byte[] payload,
int qos,
boolean retain)
Publishes a message to the MQtt broker.
|
int |
IEsfMqttMasterClient.publish(java.lang.String assetId,
java.lang.String topic,
byte[] payload,
int qos,
boolean retain)
Publishes a message to the MQtt broker.
|
int |
IEsfMqttCloudClient.publish(java.lang.String assetId,
java.lang.String semanticTopic,
byte[] payload,
int qos,
boolean retain)
Publishes a message to the MQtt broker.
|
void |
IEsfMqttClient.setBrokerUrl(java.lang.String brokerUrl)
The URL of the MQtt broker.
|
void |
IEsfMqttClient.setCleanStart(boolean cleanStart)
The clean start flag for the MQtt client.
|
void |
IEsfMqttClient.setClientId(java.lang.String clientId)
The MQtt user ID sent to the broker when a new connection is established.
|
void |
IEsfMqttClient.setKeepAlive(short seconds)
Set the service MQtt ping interval.
|
void |
IEsfMqttClient.setPassword(java.lang.String password)
Returns the client's password.
|
void |
IEsfMqttClient.setUsername(java.lang.String username)
Sets the client's username.
|
void |
IEsfMqttClient.startSession()
Connects to the MQtt broker.
|
int |
IEsfMqttMasterClient.subscribe(com.eurotech.cloud.message.EdcSubscription subscription)
Subscribes to a topic with the MQtt broker.
|
int |
IEsfMqttClient.subscribe(com.eurotech.cloud.message.EdcSubscription subscription)
Subscribes to a topic with the MQtt broker.
|
int |
IEsfMqttMasterClient.subscribe(com.eurotech.cloud.message.EdcSubscription[] subscriptions)
Subscribes to one or more topics with the MQtt broker.
|
int |
IEsfMqttClient.subscribe(com.eurotech.cloud.message.EdcSubscription[] subscriptions)
Subscribes to one or more topics with the MQtt broker.
|
int |
IEsfMqttMasterClient.subscribe(java.lang.String assetId,
com.eurotech.cloud.message.EdcSubscription subscription)
Subscribes to a topic with the MQtt broker.
|
int |
IEsfMqttCloudClient.subscribe(java.lang.String assetId,
com.eurotech.cloud.message.EdcSubscription subscription)
Subscribes to a topic with the MQtt broker.
|
int |
IEsfMqttMasterClient.subscribe(java.lang.String assetId,
com.eurotech.cloud.message.EdcSubscription[] subscriptions)
Subscribes to one or more topics with the MQtt broker.
|
int |
IEsfMqttCloudClient.subscribe(java.lang.String assetId,
com.eurotech.cloud.message.EdcSubscription[] subscriptions)
Subscribes to one or more topics with the MQtt broker.
|
int |
IEsfMqttMasterClient.subscribe(java.lang.String topic,
int qos)
Subscribes to a topic with the MQtt broker.
|
int |
IEsfMqttClient.subscribe(java.lang.String topic,
int qos)
Subscribes to a topic with the MQtt broker.
|
int |
IEsfMqttMasterClient.subscribe(java.lang.String assetId,
java.lang.String topic,
int qos)
Subscribes to a topic with the MQtt broker.
|
int |
IEsfMqttCloudClient.subscribe(java.lang.String assetId,
java.lang.String topic,
int qos)
Subscribes to a topic with the MQtt broker.
|
void |
IEsfMqttClient.terminateSession()
Disconnects from the MQtt broker.
|
int |
IEsfMqttMasterClient.unsubscribe(com.eurotech.cloud.message.EdcSubscription subscription)
Unsubscribes from a topic with the MQtt broker.
|
int |
IEsfMqttClient.unsubscribe(com.eurotech.cloud.message.EdcSubscription subscription)
Unsubscribes from a topic with the MQtt broker.
|
int |
IEsfMqttMasterClient.unsubscribe(java.lang.String topic)
Unsubscribes from a topic with the MQtt broker.
|
int |
IEsfMqttClient.unsubscribe(java.lang.String topic)
Unsubscribes from a topic with the MQtt broker.
|
int |
IEsfMqttMasterClient.unsubscribe(java.lang.String assetId,
com.eurotech.cloud.message.EdcSubscription subscription)
Unsubscribes from a topic with the MQtt broker.
|
int |
IEsfMqttCloudClient.unsubscribe(java.lang.String assetId,
com.eurotech.cloud.message.EdcSubscription subscription)
Unsubscribes from a topic with the MQtt broker.
|
int |
IEsfMqttMasterClient.unsubscribe(java.lang.String assetId,
java.lang.String topic)
Unsubscribes from a topic with the MQtt broker.
|
int |
IEsfMqttCloudClient.unsubscribe(java.lang.String assetId,
java.lang.String topic)
Unsubscribes from a topic with the MQtt broker.
|
Copyright © 2009 Eurotech Inc. All rights reserved.