1. IoT Protocol Background

As Internet of Things becomes new IoT trends, a lot of things are giving us various services by exchanging information among them. In this situation, the data exchange method between things, the IoT protocol, is classified as one of the most important things.
I will explain not only MQTT and CoAP which are representative IoT protocols but also provide some examples.
1.1 MQTT Description

MQTT (MQ Telemetry Transport or Message Queue Telemetry Transport) is a publish-subscribe-based messaging protocol. It works on top of the TCP/IP protocol[1].

To understand MQTT, you need to know the following three basic things.
  • Broker – Manage a topic and relay a message between publisher and subscriber
  • Publisher – Publish a message to specific topic
  • Subscriber – Subscribe a message to specific topic

1.2 CoAP Description

CoAP is a low power asynchronous communication protocol. Unlike MQTT, it uses asynchronous communication based on UDP. Also because it is UDP based, it doesn’t guarantee reliability of transmission. In addition it support RESTFul and DTLS(Datagram Transport Layer Security) for encryption.

1.3 MQTT vs CoAP 



2. IoT Protocol Example


2.1 MQTT Example

2.1.1 Using MQTT to connect ARduino to the Internet of Things

If you haven’t use MQTT, it’s good to use MQTT at first.

In this tutorial, it uses Arduino Uno with Ethernet shield and 2lemety Web MQTT client.




TAG: Arduino, MQTT, Ethernet, Tutorial

WIZnet Museum: https://wiznetmuseum.com/portfolio-items/using-mqtt-to-connect-arduino-to-the-internet-of-things/

Source: http://chrislarson.me/blog/using-mqtt-connect-arduino-internet-things.htmlhttp://chrislarson.me/blog/using-mqtt-connect-arduino-internet-things.html


2.1.2 IoT, Home Automation

This example explains how to set up own IoT home automation over 1~7 step posting. Because it  uses many modules like ESP8266, Arduino ATmega2560 with Ethernet shield, Raspberry pi etc, it is really helpful to beginners and intermediate users.




TAG: Wi-Fi, MQTT, Ethernet, Raspberry Pi

WIZnet Museum: https://wiznetmuseum.com/portfolio-items/iot-home-automation/

Source: http://www.instructables.com/id/IoT-Intranet-of-Things-Home-Automation-Part-1-IoT-/


2.2 CoAP Example

2.1.1 CoAP using the Arduino and firefox plugin

This project is a basic CoAP example. It helps beginners use CoAP with Arduino. It gives not only the code but also hardware wiring!




TAG: Arduino Mega, Ethernet, CoAP

WIZnet Museum: https://wiznetmuseum.com/portfolio-items/coap-using-the-arduino-and-firefox-plugin/

Source: https://geeknesia.freshdesk.com/support/solutions/articles/6000103001-arduino-coap-protoco


Curator: Tom from WIZnet

Email: tom@wiznet.io

[1] https://en.wikipedia.org/wiki/MQTT