M2M Protocols

M2M Protocols include CoAP, MQTT, AMQP, DDS, and LwM2M.


Future of IoT Technology

Future of IoT Technology: 8 Trends for Businesses to Watch in 2022

AIoT - Artificial Intelligence & IoT Technology

IoT Connectivity — 5G, WiFi 6, LPWAN, and Satellites

  • 5G: Advanced Mobile Networks 4G LTE is limited by bandwidth. 5G networks however are much faster and can support data processing needed for IoT networks much more efficiently.
  • WiFi 6 The faster that a network of devices can communicate, the more reliable that the system will be.
  • LPWAN Low-power wide-area network connectivity is an emerging technology that is effective for connecting devices with low-bandwidth usage with low bit rates over larger areas.
  • Satellite satellite-powered IoT devices enable humanitarian staff to report emergency incidents to immediately request assistance

Edge-Computing - Low Latency & Security

Not only can edge computing reduce latency of IoT technology, but it also has potential to increase the security of data processing

Wearable IoT Technology

  • The Future of IOT Smartwatches and Wristbands wearable IoT technology has immense potential to aid in medical roles due to its ability to keep track of patient vitals.
  • AR & VR Being provided with sensor data and real-time network information on a head mounted display can be very helpful for professionals

Smart Homes

The rise of Google Assistant, Amazon Echo, Apple’s Siri and other digital assistants have transformed the smart home industry. Smart home IoT networks are now expanding their ability to automate tasks like lighting, temperature control, and security. These can be configured manually by consumers, or they can be tuned automatically using AI algorithms that review sensor and usage data.

Smart Cities

  • Smart Streetlights
  • Self-driving Shuttles
  • IoT Smart Parking

M2M Communcation Protocols

4 Major IoT Protocols — MQTT, CoAP, AMQP, DDS


CoAP - RFC 7252 The Constrained Application Protocol



MQTT - The Standard for IoT Messaging

MQTT vs CoAP, the battle to become the best IoT protocol
MQTT is preferred over CoAP for mission-critical communications because it can enforce quality of service and ensure message delivery.


AMQP - Advanced Message Queuing Protocol (ISO/IEC 19464:2014)


DDS - Data Distribution Service

Ref. What is DDS?


LwM2M (LightWeight Machine-to-Machine protocol)

LwM2M specification
Overview of LwM2M LwM2M v1.11 slides
LwM2M Protocol stack


NodeMCU-32S pinout


CoAP example

Arduino Library: CoAP simple library

[Homework]: ESP32_CoAP_server.ino

Examples>CoAP simple library>esp32

  • code modifications
    • modify LEDpin to 2
    • modify SSID & Passwd
    • add to print out LEDSTATE in callback
  • Ubuntu install libcoap
    sudo apt install libcoap2-bin
  • libcoap coap-client

Sketch: ESP32_Coap_client.ino


MQTT example

Arduino Library: Adafruit MQTT Library

Examples>ArduinoMqttClient>WiFiSimpleReceive

Examples>ArduinoMqttClient>WiFiSimpleSender

[Homework]: ESP32_MQTT_mosquitto_Receiver & Sender

  • work with another classmate
  • one running ESP32_MQTT_mosquitto_Reciever.ino, the other running ESP32_MQTT_mosquitto_Sender.ino

Examples>Adafruit MQTT Library>adafruitio_secure_esp32

  • Modify Modify WLAN_SSID & WLAN_PASS
  • Sign-In https://io.adafruit.com/ to get KEY
  • Run adafruitio_secure_esp32.ino on ESP32
  • Open browser at io.adafruit.com/yourname/feeds/test

[Homework]: ESP32_adafruit_HTU21.ino / _DHT11.ino

ESP32_DHT11.ino
ESP32_HTU21DF.ino

  • ESP32 with HTU21D/DHT11 update humidity & temperature to io.adafruit.com/yourname
  • io.adafruit.com/yourname/feeds/humidity
  • io.adafruit.com/yourname/feeds/temperature



This site was last updated June 18, 2023.