|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IEsfMqttMasterClient
| Method Summary | |
|---|---|
boolean |
isConnected()
Returns an indication of whether the MQtt connection to the broker is established. |
int |
publish(java.lang.String topic,
byte[] payload,
int qos)
Publishes a message to the MQtt broker. |
int |
publish(java.lang.String sensorId,
java.lang.String topic,
byte[] payload,
int qos)
Publishes a message to the MQtt broker. |
void |
registerCallback(IEsfMqttCallback handler)
Register an IEsfMqttCallback with the IEsfMqttClient. |
int |
subscribe(EsfMqttSubscription subscription)
Subscribes to a topic with the MQtt broker. |
int |
subscribe(EsfMqttSubscription[] subscriptions)
Subscribes to one or more topics with 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 topic,
int qos)
Subscribes to a topic 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(EsfMqttSubscription subscription)
Unsubscribes from a topic with the MQtt broker. |
int |
unsubscribe(java.lang.String topic)
Unsubscribes from 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. |
| Method Detail |
|---|
int publish(java.lang.String topic,
byte[] payload,
int qos)
throws EsfMqttException
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 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.
EsfMqttException
int unsubscribe(EsfMqttSubscription subscription)
throws EsfMqttException
subscription - A EsfMqttSubscription object containing the topic.
EsfMqttException
int unsubscribe(java.lang.String topic)
throws EsfMqttException
topic - A String object containing the topic.
EsfMqttException
int subscribe(EsfMqttSubscription[] subscriptions)
throws EsfMqttException
subscriptions - An array of EsfMqttSubscription objects.
EsfMqttException
int subscribe(EsfMqttSubscription subscription)
throws EsfMqttException
subscription - An EsfMqttSubscription object.
EsfMqttException
int subscribe(java.lang.String topic,
int qos)
throws EsfMqttException
topic - A String object containing the topic.qos - An int containing the Quality of Service.
EsfMqttExceptionboolean isConnected()
void registerCallback(IEsfMqttCallback handler)
handler - An implementation of the IEsfMqttCallback interface.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||