Skip to content

Commit dbf4884

Browse files
committed
Create Mqtt5 Example
Signed-off-by: nmy6452 <[email protected]>
1 parent 99055a6 commit dbf4884

File tree

8 files changed

+826
-0
lines changed

8 files changed

+826
-0
lines changed

basic/mqtt5/README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
Spring Integration - MQTT5 Sample
2+
================================
3+
4+
# Overview
5+
6+
This sample demonstrates basic functionality of the **Spring Integration MQTT Adapters**.
7+
8+
It assumes a broker is running on localhost on port 1883.
9+
10+
Once the application is started, you enter some text on the command prompt and a message containing that entered text is
11+
dispatched to the MQTT topic. In return that message is retrieved by Spring Integration and then logged.
12+
13+
# How to Run the Sample
14+
15+
If you imported the example into your IDE, you can just run class **org.springframework.integration.samples.mqtt5.Application**.
16+
For example in [SpringSource Tool Suite](https://www.springsource.com/developer/sts) (STS) do:
17+
18+
* Right-click on SampleSimple class --> Run As --> Spring Boot App
19+
20+
(or run from the boot console).
21+
22+
Alternatively, you can start the sample from the command line:
23+
24+
* ./gradlew :mqtt5:run
25+
26+
Enter some data (e.g. `foo`) on the console; you will see `foo sent to MQTT, received from MQTT`
27+
28+
Ctrl-C to terminate.
29+

0 commit comments

Comments
 (0)