Suche senden
Hochladen
MQTT and Java - Client and Broker Examples
•
Als ODP, PDF herunterladen
•
2 gefällt mir
•
5,465 views
Micha Kops
Folgen
Demonstration of MQTT client and broker communication using Eclipse Paho and Moquette.
Weniger lesen
Mehr lesen
Technologie
Melden
Teilen
Melden
Teilen
1 von 10
Jetzt herunterladen
Empfohlen
FIWAREシステム内の短期履歴の管理
FIWAREシステム内の短期履歴の管理
fisuda
WebSocketでリアルタイム処理をする
WebSocketでリアルタイム処理をする
龍一 田中
Amazon FreeRTOSを用いた量産向けIoTマイコンデバイス開発プロトタイピング
Amazon FreeRTOSを用いた量産向けIoTマイコンデバイス開発プロトタイピング
Amazon Web Services Japan
誰でもできるスマートシティ向けOSS : FIWAREのはじめかた
誰でもできるスマートシティ向けOSS : FIWAREのはじめかた
Shunsuke Kikuchi
FIWARE Big Data Ecosystem : Cygnus and STH Comet
FIWARE Big Data Ecosystem : Cygnus and STH Comet
fisuda
FIWARE アーキテクチャの保護 - FIWARE WednesdayWebinars
FIWARE アーキテクチャの保護 - FIWARE WednesdayWebinars
fisuda
FIWARE勉強会 20190913
FIWARE勉強会 20190913
Nobuyuki Matsui
[JAWS DAYS 2019] Amazon DocumentDB(with MongoDB Compatibility)入門
[JAWS DAYS 2019] Amazon DocumentDB(with MongoDB Compatibility)入門
Shuji Kikuchi
Empfohlen
FIWAREシステム内の短期履歴の管理
FIWAREシステム内の短期履歴の管理
fisuda
WebSocketでリアルタイム処理をする
WebSocketでリアルタイム処理をする
龍一 田中
Amazon FreeRTOSを用いた量産向けIoTマイコンデバイス開発プロトタイピング
Amazon FreeRTOSを用いた量産向けIoTマイコンデバイス開発プロトタイピング
Amazon Web Services Japan
誰でもできるスマートシティ向けOSS : FIWAREのはじめかた
誰でもできるスマートシティ向けOSS : FIWAREのはじめかた
Shunsuke Kikuchi
FIWARE Big Data Ecosystem : Cygnus and STH Comet
FIWARE Big Data Ecosystem : Cygnus and STH Comet
fisuda
FIWARE アーキテクチャの保護 - FIWARE WednesdayWebinars
FIWARE アーキテクチャの保護 - FIWARE WednesdayWebinars
fisuda
FIWARE勉強会 20190913
FIWARE勉強会 20190913
Nobuyuki Matsui
[JAWS DAYS 2019] Amazon DocumentDB(with MongoDB Compatibility)入門
[JAWS DAYS 2019] Amazon DocumentDB(with MongoDB Compatibility)入門
Shuji Kikuchi
if-up 2017 | SORACOM Inside
if-up 2017 | SORACOM Inside
SORACOM,INC
What's new in Spring Batch 5
What's new in Spring Batch 5
ikeyat
コンテキストデータの永続化のための戦略
コンテキストデータの永続化のための戦略
fisuda
分散トレーシング技術について(Open tracingやjaeger)
分散トレーシング技術について(Open tracingやjaeger)
NTT Communications Technology Development
msal.js v2を触る
msal.js v2を触る
DevTakas
AWSを用いてNode-REDでらくらくAPI
AWSを用いてNode-REDでらくらくAPI
Kazumi Kanda
Linux女子部 systemd徹底入門
Linux女子部 systemd徹底入門
Etsuji Nakai
Open Policy Agent (OPA) 入門
Open Policy Agent (OPA) 入門
Motonori Shindo
Android Developer JeongJaeyun
Android Developer JeongJaeyun
jaeyunjeong1
FIWARE Orion Context Broker コンテキスト情報管理 (Orion 3.4.0対応)
FIWARE Orion Context Broker コンテキスト情報管理 (Orion 3.4.0対応)
fisuda
Multicastが出来ないならUnicastすればいいじゃない
Multicastが出来ないならUnicastすればいいじゃない
Kenta Yasukawa
Selenium×PostgreSQL15×Grafanaで思い出を保存&分析するプロジェクト(第35回PostgreSQLアンカンファレンス@オンライン...
Selenium×PostgreSQL15×Grafanaで思い出を保存&分析するプロジェクト(第35回PostgreSQLアンカンファレンス@オンライン...
NTT DATA Technology & Innovation
Coherenceを利用するときに気をつけること #OracleCoherence
Coherenceを利用するときに気をつけること #OracleCoherence
Toshiaki Maki
cluster-monitoringで困ったこと学んだこと
cluster-monitoringで困ったこと学んだこと
Sachiho Wakita
FIWARE Orion Context Broker コンテキスト情報管理 (Orion 3.7.0対応)
FIWARE Orion Context Broker コンテキスト情報管理 (Orion 3.7.0対応)
fisuda
APIs at the Edge
APIs at the Edge
Luca Mattia Ferrari
コンテナイメージの脆弱性スキャンについて
コンテナイメージの脆弱性スキャンについて
YASUKAZU NAGATOMI
Go and Uber’s time series database m3
Go and Uber’s time series database m3
Rob Skillington
AWS Glueを使った Serverless ETL の実装パターン
AWS Glueを使った Serverless ETL の実装パターン
seiichi arai
Googleのインフラ技術から考える理想のDevOps
Googleのインフラ技術から考える理想のDevOps
Etsuji Nakai
GWT Web Socket and data serialization
GWT Web Socket and data serialization
GWTcon
Front End Development for Back End Developers - UberConf 2017
Front End Development for Back End Developers - UberConf 2017
Matt Raible
Weitere ähnliche Inhalte
Was ist angesagt?
if-up 2017 | SORACOM Inside
if-up 2017 | SORACOM Inside
SORACOM,INC
What's new in Spring Batch 5
What's new in Spring Batch 5
ikeyat
コンテキストデータの永続化のための戦略
コンテキストデータの永続化のための戦略
fisuda
分散トレーシング技術について(Open tracingやjaeger)
分散トレーシング技術について(Open tracingやjaeger)
NTT Communications Technology Development
msal.js v2を触る
msal.js v2を触る
DevTakas
AWSを用いてNode-REDでらくらくAPI
AWSを用いてNode-REDでらくらくAPI
Kazumi Kanda
Linux女子部 systemd徹底入門
Linux女子部 systemd徹底入門
Etsuji Nakai
Open Policy Agent (OPA) 入門
Open Policy Agent (OPA) 入門
Motonori Shindo
Android Developer JeongJaeyun
Android Developer JeongJaeyun
jaeyunjeong1
FIWARE Orion Context Broker コンテキスト情報管理 (Orion 3.4.0対応)
FIWARE Orion Context Broker コンテキスト情報管理 (Orion 3.4.0対応)
fisuda
Multicastが出来ないならUnicastすればいいじゃない
Multicastが出来ないならUnicastすればいいじゃない
Kenta Yasukawa
Selenium×PostgreSQL15×Grafanaで思い出を保存&分析するプロジェクト(第35回PostgreSQLアンカンファレンス@オンライン...
Selenium×PostgreSQL15×Grafanaで思い出を保存&分析するプロジェクト(第35回PostgreSQLアンカンファレンス@オンライン...
NTT DATA Technology & Innovation
Coherenceを利用するときに気をつけること #OracleCoherence
Coherenceを利用するときに気をつけること #OracleCoherence
Toshiaki Maki
cluster-monitoringで困ったこと学んだこと
cluster-monitoringで困ったこと学んだこと
Sachiho Wakita
FIWARE Orion Context Broker コンテキスト情報管理 (Orion 3.7.0対応)
FIWARE Orion Context Broker コンテキスト情報管理 (Orion 3.7.0対応)
fisuda
APIs at the Edge
APIs at the Edge
Luca Mattia Ferrari
コンテナイメージの脆弱性スキャンについて
コンテナイメージの脆弱性スキャンについて
YASUKAZU NAGATOMI
Go and Uber’s time series database m3
Go and Uber’s time series database m3
Rob Skillington
AWS Glueを使った Serverless ETL の実装パターン
AWS Glueを使った Serverless ETL の実装パターン
seiichi arai
Googleのインフラ技術から考える理想のDevOps
Googleのインフラ技術から考える理想のDevOps
Etsuji Nakai
Was ist angesagt?
(20)
if-up 2017 | SORACOM Inside
if-up 2017 | SORACOM Inside
What's new in Spring Batch 5
What's new in Spring Batch 5
コンテキストデータの永続化のための戦略
コンテキストデータの永続化のための戦略
分散トレーシング技術について(Open tracingやjaeger)
分散トレーシング技術について(Open tracingやjaeger)
msal.js v2を触る
msal.js v2を触る
AWSを用いてNode-REDでらくらくAPI
AWSを用いてNode-REDでらくらくAPI
Linux女子部 systemd徹底入門
Linux女子部 systemd徹底入門
Open Policy Agent (OPA) 入門
Open Policy Agent (OPA) 入門
Android Developer JeongJaeyun
Android Developer JeongJaeyun
FIWARE Orion Context Broker コンテキスト情報管理 (Orion 3.4.0対応)
FIWARE Orion Context Broker コンテキスト情報管理 (Orion 3.4.0対応)
Multicastが出来ないならUnicastすればいいじゃない
Multicastが出来ないならUnicastすればいいじゃない
Selenium×PostgreSQL15×Grafanaで思い出を保存&分析するプロジェクト(第35回PostgreSQLアンカンファレンス@オンライン...
Selenium×PostgreSQL15×Grafanaで思い出を保存&分析するプロジェクト(第35回PostgreSQLアンカンファレンス@オンライン...
Coherenceを利用するときに気をつけること #OracleCoherence
Coherenceを利用するときに気をつけること #OracleCoherence
cluster-monitoringで困ったこと学んだこと
cluster-monitoringで困ったこと学んだこと
FIWARE Orion Context Broker コンテキスト情報管理 (Orion 3.7.0対応)
FIWARE Orion Context Broker コンテキスト情報管理 (Orion 3.7.0対応)
APIs at the Edge
APIs at the Edge
コンテナイメージの脆弱性スキャンについて
コンテナイメージの脆弱性スキャンについて
Go and Uber’s time series database m3
Go and Uber’s time series database m3
AWS Glueを使った Serverless ETL の実装パターン
AWS Glueを使った Serverless ETL の実装パターン
Googleのインフラ技術から考える理想のDevOps
Googleのインフラ技術から考える理想のDevOps
Ähnlich wie MQTT and Java - Client and Broker Examples
GWT Web Socket and data serialization
GWT Web Socket and data serialization
GWTcon
Front End Development for Back End Developers - UberConf 2017
Front End Development for Back End Developers - UberConf 2017
Matt Raible
OGCE Project Overview
OGCE Project Overview
marpierc
Protobuf & Code Generation + Go-Kit
Protobuf & Code Generation + Go-Kit
Manfred Touron
GraalVM and MicroProfile - A Polyglot Microservices Solution
GraalVM and MicroProfile - A Polyglot Microservices Solution
Roberto Cortez
XAJA - Reverse AJAX framework
XAJA - Reverse AJAX framework
Sri Prasanna
Big Data Open Source Security LLC: Realtime log analysis with Mesos, Docker, ...
Big Data Open Source Security LLC: Realtime log analysis with Mesos, Docker, ...
DataStax Academy
10 Excellent Ways to Secure Spring Boot Applications - Okta Webinar 2020
10 Excellent Ways to Secure Spring Boot Applications - Okta Webinar 2020
Matt Raible
mqttvsrest_v4.pdf
mqttvsrest_v4.pdf
RaghuKiran29
Workshop MSF4J - Getting Started with Microservices and Java
Workshop MSF4J - Getting Started with Microservices and Java
Edgar Silva
Xitrum Web Framework Live Coding Demos / Xitrum Web Framework ライブコーディング
Xitrum Web Framework Live Coding Demos / Xitrum Web Framework ライブコーディング
scalaconfjp
Xitrum @ Scala Matsuri Tokyo 2014
Xitrum @ Scala Matsuri Tokyo 2014
Ngoc Dao
Powerful persistence layer with Google Guice & MyBatis
Powerful persistence layer with Google Guice & MyBatis
simonetripodi
AFUP Lorraine - Symfony Webpack Encore
AFUP Lorraine - Symfony Webpack Encore
Engineor
Real-Time Log Analysis with Apache Mesos, Kafka and Cassandra
Real-Time Log Analysis with Apache Mesos, Kafka and Cassandra
Joe Stein
HTTP/2 - How it's changing web performance
HTTP/2 - How it's changing web performance
Mateus Prado
2018 (codeone) Graal VM and MicroProfile a polyglot microservices solution [d...
2018 (codeone) Graal VM and MicroProfile a polyglot microservices solution [d...
César Hernández
using Mithril.js + postgREST to build and consume API's
using Mithril.js + postgREST to build and consume API's
Antônio Roberto Silva
Django wrapper
Django wrapper
sudipta nandi
Stratos Grouping
Stratos Grouping
WSO2
Ähnlich wie MQTT and Java - Client and Broker Examples
(20)
GWT Web Socket and data serialization
GWT Web Socket and data serialization
Front End Development for Back End Developers - UberConf 2017
Front End Development for Back End Developers - UberConf 2017
OGCE Project Overview
OGCE Project Overview
Protobuf & Code Generation + Go-Kit
Protobuf & Code Generation + Go-Kit
GraalVM and MicroProfile - A Polyglot Microservices Solution
GraalVM and MicroProfile - A Polyglot Microservices Solution
XAJA - Reverse AJAX framework
XAJA - Reverse AJAX framework
Big Data Open Source Security LLC: Realtime log analysis with Mesos, Docker, ...
Big Data Open Source Security LLC: Realtime log analysis with Mesos, Docker, ...
10 Excellent Ways to Secure Spring Boot Applications - Okta Webinar 2020
10 Excellent Ways to Secure Spring Boot Applications - Okta Webinar 2020
mqttvsrest_v4.pdf
mqttvsrest_v4.pdf
Workshop MSF4J - Getting Started with Microservices and Java
Workshop MSF4J - Getting Started with Microservices and Java
Xitrum Web Framework Live Coding Demos / Xitrum Web Framework ライブコーディング
Xitrum Web Framework Live Coding Demos / Xitrum Web Framework ライブコーディング
Xitrum @ Scala Matsuri Tokyo 2014
Xitrum @ Scala Matsuri Tokyo 2014
Powerful persistence layer with Google Guice & MyBatis
Powerful persistence layer with Google Guice & MyBatis
AFUP Lorraine - Symfony Webpack Encore
AFUP Lorraine - Symfony Webpack Encore
Real-Time Log Analysis with Apache Mesos, Kafka and Cassandra
Real-Time Log Analysis with Apache Mesos, Kafka and Cassandra
HTTP/2 - How it's changing web performance
HTTP/2 - How it's changing web performance
2018 (codeone) Graal VM and MicroProfile a polyglot microservices solution [d...
2018 (codeone) Graal VM and MicroProfile a polyglot microservices solution [d...
using Mithril.js + postgREST to build and consume API's
using Mithril.js + postgREST to build and consume API's
Django wrapper
Django wrapper
Stratos Grouping
Stratos Grouping
Kürzlich hochgeladen
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
Delhi Call girls
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
wesley chun
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
lior mazor
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
sammart93
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
Gabriella Davis
Evaluating the top large language models.pdf
Evaluating the top large language models.pdf
ChristopherTHyatt
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
apidays
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
Delhi Call girls
🐬 The future of MySQL is Postgres 🐘
🐬 The future of MySQL is Postgres 🐘
RTylerCroy
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
hans926745
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
Enterprise Knowledge
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
Principled Technologies
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
ThousandEyes
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
The Digital Insurer
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
Anna Loughnan Colquhoun
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
Delhi Call girls
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
Martijn de Jong
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
debabhi2
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
Kürzlich hochgeladen
(20)
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
Evaluating the top large language models.pdf
Evaluating the top large language models.pdf
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
🐬 The future of MySQL is Postgres 🐘
🐬 The future of MySQL is Postgres 🐘
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
MQTT and Java - Client and Broker Examples
1.
Micha Kops http://www.hascode.com/2016/06/playing-around-with-mqtt-and-java-with-moquette-and-eclipse-paho/ MQTT for
Java Client and Broker examples using Moquette and Apache Paho
2.
Micha Kops http://www.hascode.com/2016/06/playing-around-with-mqtt-and-java-with-moquette-and-eclipse-paho/ Dependencies <dependency> <groupId>io.moquette</groupId> <artifactId>moquette-broker</artifactId> <version>0.8</version> </dependency> <dependency> <groupId>org.eclipse.paho</groupId> <artifactId>org.eclipse.paho.client.mqttv3</artifactId> <version>1.0.2</version> </dependency>
3.
Micha Kops http://www.hascode.com/2016/06/playing-around-with-mqtt-and-java-with-moquette-and-eclipse-paho/ Moquette Configuration port
1883 host 0.0.0.0 allow_anonymous true File moquette.conf
4.
Micha Kops http://www.hascode.com/2016/06/playing-around-with-mqtt-and-java-with-moquette-and-eclipse-paho/ Message Interceptor class
PublisherListener extends AbstractInterceptHandler { @Override public void onPublish(InterceptPublishMessage message) { System.out.println("moquette mqtt broker message intercepted, topic: " + message.getTopicName() + ", content: " + new String(message.getPayload().array())); } }
5.
Micha Kops http://www.hascode.com/2016/06/playing-around-with-mqtt-and-java-with-moquette-and-eclipse-paho/ Shutdown hook final
IConfig classPathConfig = new ClasspathConfig(); final Server mqttBroker = new Server(); final List<? extends InterceptHandler> userHandlers = Arrays.asList(new PublisherListener()); mqttBroker.startServer(classPathConfig, userHandlers); System.out.println("moquette mqtt broker started, press ctrl-c to shutdown.."); Runtime.getRuntime().addShutdownHook(new Thread() { @Override public void run() { System.out.println("stopping moquette mqtt broker.."); mqttBroker.stopServer(); System.out.println("moquette mqtt broker stopped"); } });
6.
Micha Kops http://www.hascode.com/2016/06/playing-around-with-mqtt-and-java-with-moquette-and-eclipse-paho/ Eclipse Paho
MQTT Client String topic = "news"; String content = "Visit www.hascode.com! :D"; int qos = 2; String broker = "tcp://0.0.0.0:1883"; String clientId = "paho-java-client"; try { MqttClient sampleClient = new MqttClient(broker, clientId, new MemoryPersistence()); MqttConnectOptions connOpts = new MqttConnectOptions(); connOpts.setCleanSession(true); System.out.println("paho-client connecting to broker: " + broker); sampleClient.connect(connOpts); System.out.println("paho-client connected to broker"); System.out.println("paho-client publishing message: " + content); MqttMessage message = new MqttMessage(content.getBytes()); message.setQos(qos); sampleClient.publish(topic, message); System.out.println("paho-client message published"); sampleClient.disconnect(); System.out.println("paho-client disconnected"); } catch (MqttException me) {}
7.
Micha Kops http://www.hascode.com/2016/06/playing-around-with-mqtt-and-java-with-moquette-and-eclipse-paho/ Running Example final
IConfig classPathConfig = new ClasspathConfig(); final Server mqttBroker = new Server(); final List<? extends InterceptHandler> userHandlers = Arrays.asList(new PublisherListener()); mqttBroker.startServer(classPathConfig, userHandlers); Runtime.getRuntime().addShutdownHook(new Thread() { @Override public void run() { mqttBroker.stopServer(); } }); String topic = "news"; String content = "Visit www.hascode.com! :D"; int qos = 2; String broker = "tcp://0.0.0.0:1883"; String clientId = "paho-java-client"; MqttClient sampleClient = new MqttClient(broker, clientId, new MemoryPersistence()); MqttConnectOptions connOpts = new MqttConnectOptions(); connOpts.setCleanSession(true); sampleClient.connect(connOpts); MqttMessage message = new MqttMessage(content.getBytes()); message.setQos(qos); sampleClient.publish(topic, message); sampleClient.disconnect();
8.
Micha Kops http://www.hascode.com/2016/06/playing-around-with-mqtt-and-java-with-moquette-and-eclipse-paho/ Running the
Example $ mvn exec:java -Dexec.mainClass=com.hascode.tutorial.mqtt.Main [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building mqtt-java-tutorial 1.0.0 [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- exec-maven-plugin:1.3.1:java (default-cli) @ mqtt-java-tutorial --- moquette mqtt broker started, press ctrl-c to shutdown.. paho-client connecting to broker: tcp://0.0.0.0:1883 paho-client connected to broker paho-client publishing message: Visit www.hascode.com! :D moquette mqtt broker message intercepted, topic: news, content: Visit www.hascode.com! :D paho-client message published paho-client disconnected ^Cstopping moquette mqtt broker.. moquette mqtt broker stopped
9.
Micha Kops http://www.hascode.com/2016/06/playing-around-with-mqtt-and-java-with-moquette-and-eclipse-paho/ Resources ● Sources: https://bitbucket.org/hascode/mqtt-java-tutorial ●
Tutorial: http://www.hascode.com/2016/06/playing-around-wi ● MQTT Website: http://mqtt.org/ ● Eclipse Paho: https://eclipse.org/paho/clients/java/ ● Moquette: http://andsel.github.io/moquette/
10.
Micha Kops http://www.hascode.com/2016/06/playing-around-with-mqtt-and-java-with-moquette-and-eclipse-paho/ Le Fin Thanks
for your audience!
Jetzt herunterladen