@@ -8,17 +8,33 @@ Tested with [AWS IoT][5], [The Things network][4] and [mosquitto][2] brokers.
88Main java actions:
99
1010 * MqttPublish - publish a message to specified topic
11- * MqttSubscribe - subscribe to a topic. Required you to specify a microflow which will be called upon receiving
11+ * MqttSubscribe - subscribe to a topic. Required you to specify a microflow which will be called upon receiving
1212 a message. This microflow should have two string parameters: Topic and Payload.
13- * MqttUnsubscribe
14-
13+ * MqttUnsubscribe - unsubscribe from topic
14+
15+ ![ MQTT Microflow actions toolbox] [ 9 ]
16+
1517## Usage with Amazon AWS IoT
1618
1719You need to register your app as a Thing on AWS IoT. Download the generated certificates and store them in your resources
1820folder of your app. When subscribing or publishing a message specify their location reletive to the resources folder.
1921
2022## Usage with TTN
2123
24+ For TTN you can leave the certifice info empty, instead provide username and password.
25+
26+ Microflow to subscribe to an MQTT topic:
27+
28+ ![ MQTT subscribe to topic] [ 10 ]
29+
30+ Configuration of subscribe for TTN:
31+
32+ ![ ] [ 11 ]
33+
34+ Microflow to handled messages received:
35+
36+ ![ ] [ 12 ]
37+
2238## Development
2339
2440Java dependencies are managed using Apache Ivy. There are two configuration:
@@ -43,3 +59,7 @@ included in the connector mpk.
4359 [ 6 ] : https://staging.thethingsnetwork.org/wiki/Backend/Connect/Application
4460 [ 7 ] : https://staging.thethingsnetwork.org/wiki/Backend/Security
4561 [ 8 ] : https://staging.thethingsnetwork.org/wiki/Backend/ttnctl/QuickStart
62+ [ 9 ] : docs/images/mqtt-toolbox.png
63+ [ 10 ] : docs/images/mqtt-subscribe-action.png
64+ [ 11 ] : docs/images/mqtt-subscribe-ttn.png
65+ [ 12 ] : docs/images/mqtt-ttn-on-message-mf.png
0 commit comments