C++ Design Patterns: Observer – Building a Publish-Subscribe Weather Forecast System

C++ Design Patterns: Observer - Building a Publish-Subscribe Weather Forecast System

C++ Design Patterns: Observer – Building a Publish-Subscribe Weather Forecast System Decouple your notification mechanism to keep objects “automatically” in sync Introduction: Isolated Information Updates Hello, C++ developers. Imagine you are building a weather monitoring system. The central weather station (<span>WeatherStation</span>) is responsible for collecting the latest meteorological data (temperature, humidity, pressure). At the same … Read more

Exploring MQTT: The Unsung Hero of IoT Communication

Exploring MQTT: The Unsung Hero of IoT Communication

In today’s interconnected world, Internet of Things (IoT) technology is transforming our lives and work at an unprecedented pace. From smart homes to industrial automation, from intelligent transportation to environmental monitoring, various devices are interconnected through networks, enabling data exchange and sharing. Within this vast IoT ecosystem, communication protocols play a crucial role, among which … Read more

Understanding MQTT: A Key Protocol for IoT Communication

Understanding MQTT: A Key Protocol for IoT Communication

What is MQTT? In the world of the Internet of Things (IoT), devices need to communicate with each other. They share data such as temperature, speed, or light levels. One protocol that facilitates this communication simply and efficiently is MQTT. MQTT stands for Message Queuing Telemetry Transport. It was designed for small devices with limited … Read more

The Correct Way to Publish-Subscribe MQTT Messages in Java

The Correct Way to Publish-Subscribe MQTT Messages in Java

MQTT is a widely used messaging protocol in IoT projects, utilizing a publish–subscribe model for message communication. Below, we will demonstrate how to implement publishing–subscribe message data to an MQTT server using Java. First, include the pom dependency: <dependency> <groupId>org.eclipse.paho</groupId> <artifactId>org.eclipse.paho.client.mqttv3</artifactId> <version>1.2.5</version></dependency> Publish a JSON message to vehicle/monitor/{userId} as shown in the demo below: public … Read more

Detailed Explanation of MQTT Packets【02】: PUBLISH & PUBACK

Detailed Explanation of MQTT Packets【02】: PUBLISH & PUBACK

In the previous issue, we introduced the CONNECT and CONNACK packets of MQTT 5.0:Detailed Explanation of MQTT Packets【01】: CONNECT & CONNACKNow, we will introduce the PUBLISH packet used for transmitting application messages in MQTT and its response packet.Whether the client publishes messages to the server or the server forwards messages to subscribers, the PUBLISH packet … Read more

Standard Communication Protocols for IoT

Standard Communication Protocols for IoT

Recently, I have been revising the control architecture for the company’s IoT devices (vending machines). The reason for this is that the new partner equipment manufacturer has adopted a completely different communication protocol (MQTT). To ensure compatibility between the old and new devices while minimizing the impact on existing operations, I decided to restructure the … Read more

MQTT: The Best Companion for IoT Messaging

MQTT: The Best Companion for IoT Messaging

MQTT: The Best Companion for IoT Messaging Hello everyone! Today I want to talk to you about a very important communication protocol in the field of IoT — MQTT. As a lightweight messaging protocol, MQTT is particularly suitable for IoT applications that require low bandwidth and have unstable networks. Whether it’s smart homes, industrial monitoring, … Read more

What Is MQTT Protocol?

What Is MQTT Protocol?

1. What Is MQTT Protocol The full name of MQTT protocol is Message Queuing Telemetry Transport, translated as Message Queue Telemetry Transport. It is a message protocol based on the publish-subscribe model under ISO standards, based on the TCP/IP protocol suite, designed to improve the performance of network device hardware and the network itself. MQTT … Read more

Learning MQTT Protocol: 006 – Subscribe Topic and Corresponding Messages (SUBSCRIBE, SUBACK, UNSUBSCRIBE, UNSUBACK)

Learning MQTT Protocol: 006 - Subscribe Topic and Corresponding Messages (SUBSCRIBE, SUBACK, UNSUBSCRIBE, UNSUBACK)

Background Previously, we discussed how to publish messages and their corresponding packets; now let’s look at how the packets for subscribing to a topic are structured. SUBSCRIBE – Subscribe to a Topic The client sends a SUBSCRIBE packet to the server to create one or more subscriptions. Each subscription registers one or more topics of … Read more

In-Depth Guide to Best IoT Protocol MQTT

In-Depth Guide to Best IoT Protocol MQTT

Table of Contents What is MQTT? MQTT Platform Use Cases Why is MQTT the Best Protocol for IoT? How Does MQTT Work? MQTT Workflow This article will demonstrate how to get started with the MQTT protocol through code examples. IoT and MQTT beginners can understand the concepts related to MQTT and quickly start developing MQTT … Read more