MQTT is your best friend

Post on 07-Jan-2017

172 views 0 download

transcript

Tomáš Jukin@Inza

MQTT is your Best Friend

How Internet of Thingsresembles queues for bread rolls?

How you do it when shopping?

Alone in the morning…

There is only one queue…

But later is crowded everywhere!

Queues start to form!

How you do it with TCP/IP?

Fair easy right?

Just use a lib!

But you have 8bit bus, 16Mhz and 32KB RAM

Now do your magic…

Welcome to the world of IoT!

Tomáš Jukin@Inza

www.juicymo.cz@JuicymoCZ

What is IoT?

tldr; ?

What is IoT?

yes, it’s a BUZZword, but..?

Internet of Things

Internet of Things

Internet of Things

I am mighty iPhone, I compute

everything!

I am mighty iPhone, I compute

everything!

Mooo?!

Muhaaaa!

Muhaaaa!

Muhaaaa!

Muhaaaa!

Muhaaaa!

Muhaaaa!

Muhaaaa!

Muhaaaa!

Welcome in Hell!

Muhaaaa!

There is not enough queue! Close

one cash desk immediately!

I cannot rule here any longer… :-(

Match the speed guys!

One by one…

MQTT

MQTTISO/IEC PRF 20922

MQTTMessage

Queue

Telemetry

Transport

MQTT

MQTT Broker

MQTT Client MQTT Client

MQTT Broker

MQTT Client MQTT Client

CONNECT

MQTT Broker

MQTT Client MQTT Client

CONNECTCONNACK

MQTT Broker

MQTT Client MQTT Client

CONNECTCONNACK CONNECT

MQTT Broker

MQTT Client MQTT Client

CONNECTCONNACK CONNECT

CONNACK

MQTT Broker

MQTT Client MQTT ClientSubscriberPublisher

MQTT Broker

MQTT Client MQTT Client

SUBSCRIBE

SubscriberPublisher

MQTT Broker

MQTT Client MQTT Client

PUBLISH SUBSCRIBE

SubscriberPublisher

MQTT Broker

MQTT Client MQTT Client

PUBLISH SUBSCRIBE

SEND

SubscriberPublisher

http://mqtt.org/faq

See more at

https://github.com/knolleary/pubsubclient

+

RabbitMQ

HiveMQActiveMQ

EVRYTHNG

AWS IoT

dashing.io

www.lelylan.com

github.com/fabaff/mqtt-panel

Questions?

Tomáš Jukin@Inza

www.juicymo.cz@JuicymoCZ

Photo Credits

All photos used are CC from Flickr