public class MqttClient
extends java.lang.Object
MqttStreams
is
a connector used to create a bridge between topology streams
and an MQTT broker.
The client either publishes some messages to a MQTT topic or subscribes to the topic and reports the messages received.
By default, a running MQTT broker with the following characteristics is assumed:
tcp://localhost:1883
See the MQTT link above for information about setting up a MQTT broker.
This may be executed as:
java -cp samples/lib/org.apache.edgent.samples.connectors.mqtt.jar
org.apache.edgent.samples.connectors.mqtt.MqttClient -h
- Run directly from the command line.
trustStore
or keyStore
arguments.
Constructor and Description |
---|
MqttClient() |
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args) |
Copyright © 2016 The Apache Software Foundation. All Rights Reserved - bbe71fa-20161201-1641