Package | Description |
---|---|
tijos.framework.networkcenter.mqtt |
MQTT3.1.1 client
|
Modifier and Type | Method and Description |
---|---|
void |
MqttClient.close()
Close and release the resources
|
void |
MqttClient.connect(MqttConnectOptions options)
Connect to the server
|
void |
MqttClient.connect(MqttConnectOptions options,
Object userContext)
Connect to the server with a context
|
void |
MqttClient.disconnect()
Disconnect the server
|
int |
MqttClient.publish(String topic,
byte[] payload,
int qos,
boolean retained)
publish topic to the server
|
void |
MqttClient.reconnect()
User triggered attempt to reconnect
|
int |
MqttClient.subscribe(String topic,
int qos)
subscribe a topic from the server
|
int |
MqttClient.unsubscribe(String topic)
unsubscribe a topic from the server
|