Eclipse Democamps 2013 - M2M for Java Developers with MQTT
Upcoming SlideShare
Loading in...5
×
 

Eclipse Democamps 2013 - M2M for Java Developers with MQTT

on

  • 1,437 views

I gave this talk at Eclipse Democamp Munich and Stuttgart. This presentation explains the benefits of MQTT, why HTTP isn't enough for the Internet of Things and Machine-to-Machine communication. Last ...

I gave this talk at Eclipse Democamp Munich and Stuttgart. This presentation explains the benefits of MQTT, why HTTP isn't enough for the Internet of Things and Machine-to-Machine communication. Last but not least it shows how to use the Eclipse Paho Java library for efficient

Statistics

Views

Total Views
1,437
Views on SlideShare
1,431
Embed Views
6

Actions

Likes
2
Downloads
64
Comments
0

1 Embed 6

https://twitter.com 6

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Eclipse Democamps 2013 - M2M for Java Developers with MQTT Eclipse Democamps 2013 - M2M for Java Developers with MQTT Presentation Transcript

  • M2M for Java Developers MQTT with Eclipse Paho
  • Dominik Obermaier @dobermai excited about M2M passionate Architect & Maker helps standardizing MQTT at OASIS loves OSS Co-Founder and CTO at dc-square HiveMQ architect
  • M2M?
  • TECHNOLOGY THA T SUPPORTS WIRED OR WIRELESS COMMUNICA TION BETWEEN DEVICES
  • Why should we care?
  • “Things” in the Internet 2010 2015 2020 ~6.909.000.000 ~7.302.000.000 ~7.675.000.000 [1] [2] ~12.500.000.000 ~25.000.000.000 ~50.000.000.000 [1]Source: http://www.un.org/esa/population/publications/wpp2008/wpp2008_highlights.pdf [2]Source: http://share.cisco.com/internet-of-things.html
  • “Things” in the Internet People Things 50,000,000,000 37,500,000,000 25,000,000,000 12,500,000,000 0 2010 2015 2020
  • “Things” in the Internet People Things 50,000,000,000 37,500,000,000 25,000,000,000 1.8x 12,500,000,000 0 2010 2015 2020
  • “Things” in the Internet People Things 50,000,000,000 37,500,000,000 25,000,000,000 1.8x 3.4x 12,500,000,000 0 2010 2015 2020
  • “Things” in the Internet People Things 50,000,000,000 6.5x 37,500,000,000 25,000,000,000 1.8x 3.4x 12,500,000,000 0 2010 2015 2020
  • Which protocol ?
  • HTTP? Request / Response Verbose Polling instead of Push No quality of service How to get notified if clients die? Stateless
  • Why MQTT? ✓ Simple ✓ Efficient ✓ Publish / Subscribe ✓ Quality of Service Levels ✓ Last Will and Testament ✓ Designed for unreliable networks
  • Why MQTT? ✓ Simple ✓ Efficient ✓ Publish / Subscribe ✓ Quality of Service Levels ✓ Last Will and Testament ✓ Designed for unreliable networks K Wireless? Yep, then it probably is unreliable
  • Google Trends
  • History MQTT invented by IBM and Arcom (Eurotech) 1999 royalty free OASIS TC formed 2010 2013 MQTT becomes Standard 2014
  • Publish / Subscribe
  • MQTT Topics
  • MQTT Topics MQTT/is/awesome MQTT/is/fantastic Bacon/is/awesome MQTT/looks/fantastic MQTT/looks/fantastic
  • MQTT Topics MQTT/is/awesome MQTT Bacon looks is fantastic awesome
  • MQTT Topics MQTT/is/awesome MQTT Bacon looks is fantastic awesome
  • MQTT Topics MQTT/is/awesome MQTT Bacon looks is fantastic awesome
  • MQTT Topics MQTT/is/awesome MQTT Bacon looks is fantastic awesome
  • MQTT Topics MQTT/is/awesome MQTT Bacon looks is fantastic awesome
  • MQTT Topics MQTT/is/awesome MQTT Bacon looks is fantastic awesome
  • MQTT Topics Bacon/is/awesome MQTT Bacon looks is fantastic awesome
  • MQTT Topics Bacon/is/awesome MQTT Bacon looks is fantastic awesome
  • MQTT Topics Bacon/is/awesome MQTT Bacon looks is fantastic awesome
  • MQTT Topics Bacon/is/awesome MQTT Bacon looks is fantastic awesome
  • MQTT Topics Bacon/is/awesome MQTT Bacon looks is fantastic awesome
  • MQTT Topics Bacon/is/awesome MQTT Bacon looks is fantastic awesome
  • MQTT Topic Level Wilcard +/is/awesome MQTT Bacon looks is fantastic awesome
  • MQTT Topic Level Wilcard +/is/awesome MQTT Bacon looks is fantastic awesome
  • MQTT Topic Level Wilcard +/is/awesome MQTT Bacon looks is fantastic awesome
  • MQTT Topic Level Wilcard +/is/awesome MQTT Bacon looks is fantastic awesome
  • MQTT Topic Level Wilcard +/is/awesome MQTT Bacon looks is fantastic awesome
  • MQTT Topic Level Wilcard +/is/awesome MQTT Bacon looks is fantastic awesome
  • MQTT Topic Level Wilcard +/is/awesome MQTT Bacon looks is fantastic awesome
  • MQTT Topic Level Wilcard +/is/+ MQTT Bacon looks is fantastic awesome
  • MQTT Topic Level Wilcard +/is/+ MQTT Bacon looks is fantastic awesome
  • MQTT Topic Level Wilcard +/is/+ MQTT Bacon looks is fantastic awesome
  • MQTT Topic Level Wilcard +/is/+ MQTT Bacon looks is fantastic awesome
  • MQTT Topic Level Wilcard +/is/+ MQTT Bacon looks is fantastic awesome
  • MQTT Topic Level Wilcard +/is/+ MQTT Bacon looks is fantastic awesome
  • MQTT Topic Level Wilcard +/is/+ MQTT Bacon looks is fantastic awesome
  • MQTT Topic Level Wilcard +/is/+ MQTT Bacon looks is fantastic awesome
  • MQTT Wildcard MQTT/# MQTT Bacon looks is fantastic awesome
  • MQTT Wildcard MQTT/# MQTT Bacon looks is fantastic awesome
  • MQTT Wildcard MQTT/# MQTT Bacon looks is fantastic awesome
  • MQTT Wildcard MQTT/# MQTT Bacon looks is fantastic awesome
  • MQTT Wildcard MQTT/# MQTT Bacon looks is fantastic awesome
  • MQTT Wildcard MQTT/# MQTT Bacon looks is fantastic awesome
  • MQTT Wildcard MQTT/# MQTT Bacon looks is fantastic awesome
  • MQTT Wildcard MQTT/# MQTT Bacon looks is fantastic awesome
  • MQTT Wildcard MQTT/# MQTT Bacon looks is fantastic awesome
  • MQTT Wildcard # MQTT Bacon looks is fantastic awesome
  • MQTT Wildcard # MQTT Bacon looks is fantastic awesome
  • MQTT Wildcard # MQTT Bacon looks is fantastic awesome
  • MQTT Wildcard # MQTT Bacon looks is fantastic awesome
  • MQTT Wildcard # MQTT Bacon looks is fantastic awesome
  • MQTT Wildcard # MQTT Bacon looks is fantastic awesome
  • MQTT Wildcard # MQTT Bacon looks is fantastic awesome
  • MQTT Wildcard # MQTT Bacon looks is fantastic awesome
  • MQTT Wildcard # MQTT Bacon looks is fantastic awesome
  • MQTT Wildcard # MQTT Bacon looks is fantastic awesome
  • Broker Implementations
  • Broker Implementations
  • Broker Implementations
  • Broker Implementations
  • Broker Implementations
  • Broker Implementations
  • Broker Implementations + others
  • Broker Implementations + others Extensive list of brokers available at http://mqtt.org/wiki/doku.php/brokers
  • OK, got it. How to start hacking?
  • What is Paho? ✓ Scalable Open Source Implementations of M2M standard protocols ✓ Focus on MQTT ✓ Implementations in Java, Javascript, Lua, C, C++ and Python ✓ Eclipse Incubator
  • What is Paho? K Read: What is Paho at the moment ✓ Scalable Open Source Implementations of M2M standard protocols ✓ Focus on MQTT ✓ Implementations in Java, Javascript, Lua, C, C++ and Python ✓ Eclipse Incubator
  • Java!
  • Paho - Java contribution of IBM announced at EclipseCon Europe 11/2011 first version in GIT 03/2012 Release v0.1 11/2012 Release v0.2 04/2013 Release v0.4.0 08/2013
  • Code! public void start() throws Exception { final String clientId = "democamp_sub"; final MqttClient mqttClient = new MqttClient(BROKER_URL, clientId, new MemoryPersistence()); mqttClient.setCallback(new SubscribeCallback(mqttClient)); mqttClient.connect(); mqttClient.subscribe(TOPIC_SUBSCRIPTION, QUALITY_OF_SERVICE_LEVEL); }
  • Moar Code! public class SubscribeCallback implements MqttCallback { @Override public void connectionLost(Throwable cause) {} @Override public void deliveryComplete(MqttDeliveryToken token) {} @Override public void messageArrived(MqttTopic topic, MqttMessage message) throws Exception { System.out.println( "Message arrived. Topic: " topic.getName() + ", QoS: " + message.getQos() + ", message: " + new String(message.getPayload(),Charset.forName("UTF-8"))); }
  • DEMO!
  • Other Eclipse M2M Projects
  • Other Eclipse M2M Projects + others
  • THANK YOU!
  • Credits ✓ Pictures licensed from different people from 500px.com and depositphotos.com ✓ MQTT Logo by http://www.mqtt.org ✓ Paho Logo from http://wiki.eclipse.org/Paho/Branding