|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IEsfMqttCloudClient
| Field Summary | |
|---|---|
static java.lang.String |
SERVICE_NAME
Reports the class name representing this interface. |
| Method Summary | |
|---|---|
void |
disableConnectionLostTimeout()
Disables the connection lost timeout option. |
void |
enableConnectionLostTimeout(long timeout)
Enables the connection lost timeout option within the client. |
int |
publish(java.lang.String sensorId,
java.lang.String topic,
byte[] payload,
int qos)
Publishes a message to the MQtt broker. |
int |
subscribe(java.lang.String sensorId,
EsfMqttSubscription subscription)
Subscribes to a topic with the MQtt broker. |
int |
subscribe(java.lang.String sensorId,
EsfMqttSubscription[] subscriptions)
Subscribes to one or more topics with the MQtt broker. |
int |
subscribe(java.lang.String sensorId,
java.lang.String topic,
int qos)
Subscribes to a topic with the MQtt broker. |
int |
unsubscribe(java.lang.String sensorId,
EsfMqttSubscription subscription)
Unsubscribes from a topic with the MQtt broker. |
int |
unsubscribe(java.lang.String sensorId,
java.lang.String topic)
Unsubscribes from a topic with the MQtt broker. |
| Methods inherited from interface com.esf.net.mqtt.client.service.IEsfMqttClient |
|---|
connect, disconnect, getClientId, getPassword, getSubscriptions, getUsername, isConnected, publish, registerCallback, setBrokerAddress, setBrokerPort, setCleanStart, setClientId, setKeepAlive, setPassword, setUsername, subscribe, subscribe, subscribe, unsubscribe, unsubscribe |
| Field Detail |
|---|
static final java.lang.String SERVICE_NAME
| Method Detail |
|---|
int publish(java.lang.String sensorId,
java.lang.String topic,
byte[] payload,
int qos)
throws EsfMqttException
sensorId - A String specifying the sensor ID.topic - A String specifying the topic the message was published on.payload - An array of bytes containing the payload of the message.qos - An integer specifying the quality of service the message was published on.
EsfMqttException
int subscribe(java.lang.String sensorId,
EsfMqttSubscription[] subscriptions)
throws EsfMqttException
sensorId - A String specifying the sensor ID.subscriptions - An array of EsfMqttSubscription objects.
EsfMqttException
int subscribe(java.lang.String sensorId,
EsfMqttSubscription subscription)
throws EsfMqttException
sensorId - A String specifying the sensor ID.subscription - An EsfMqttSubscription object.
EsfMqttException
int subscribe(java.lang.String sensorId,
java.lang.String topic,
int qos)
throws EsfMqttException
sensorId - A String specifying the sensor ID.topic - A String object containing the topic.qos - An int containing the Quality of Service.
EsfMqttException
int unsubscribe(java.lang.String sensorId,
EsfMqttSubscription subscription)
throws EsfMqttException
sensorId - A String specifying the sensor ID.subscription - A EsfMqttSubscription object containing the topic.
EsfMqttException
int unsubscribe(java.lang.String sensorId,
java.lang.String topic)
throws EsfMqttException
sensorId - A String specifying the sensor ID.topic - A String object containing the topic.
EsfMqttExceptionvoid enableConnectionLostTimeout(long timeout)
timeout - The number of seconds the unit can be disconnected before rebooting.void disableConnectionLostTimeout()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||