Detailed Explanation of the MQTT Protocol Heartbeat Mechanism: How PINGREQ and PINGRESP Ensure Continuous Connection Activity

Detailed Explanation of the MQTT Protocol Heartbeat Mechanism: How PINGREQ and PINGRESP Ensure Continuous Connection Activity

In the MQTT protocol, Ping is a mechanism used to maintain the activity of the connection between the client and the server. It is implemented through two control messages: PINGREQ (heartbeat request) and PINGRESP (heartbeat response), ensuring that both parties are aware that the connection is still valid, especially in cases of prolonged inactivity. 1. … Read more

How Qt CMake Can Help Me Continue Using You

How Qt CMake Can Help Me Continue Using You

Recently, while developing ARM applications, I used Qt version 6.2 to cross-compile the source code. The compilation went smoothly and quickly. However, when I was about to compile the program I had written using the Qt library, I found that it could not be compiled with QMake due to a missing connection in Qml. After … Read more

Zephyr v4.2.0 Release

Zephyr v4.2.0 Release

Zephyr v4.2.0 was released on schedule on July 18, 2025, with support until March 18, 2026. Release file: https://github.com/zephyrproject-rtos/zephyr/releases/tag/v4.2.0 Release Notes: https://docs.zephyrproject.org/latest/releases/release-notes-4.2.html Release Blog: https://www.zephyrproject.org/zephyr-rtos-4-2-now-available-introduces-renesas-rx-support-usb-video-class-and-more/ Migration Guide (from 4.1.0 to 4.2.0): https://docs.zephyrproject.org/latest/releases/migration-guide-4.2.html Supporting Video: https://www.youtube.com/watch?v=25xrHzeaw5w The official release blog provides a detailed overview of the new features and highlights of v4.2.0. The release notes contain … Read more

Introduction to PWN with MQTT Protocol (CISCN2025 Final MQTT)

Introduction to PWN with MQTT Protocol (CISCN2025 Final MQTT)

Participating in the finals of the national competition for the first time, I had heard that the finals would feature some topics related to industrial control and the Internet of Vehicles. I also had a rough understanding of PWN topics involving the MQTT protocol and had used the Python Paho library for client interaction. However, … Read more

IoT Architecture Based on ESP32 and AWS Fully Managed Services: Efficient Device-Cloud-APP Interconnection with MQTT + WebSocket

IoT Architecture Based on ESP32 and AWS Fully Managed Services: Efficient Device-Cloud-APP Interconnection with MQTT + WebSocket

Using ESP32 + MQTT (Device to Cloud) + WebSocket (Cloud to APP) architecture, and introducing AWS Serverless + AWS IoT Core. This is a modern, scalable, and low-maintenance IoT architecture choice. Covers low power consumption for devices, optimization of AWS cloud serverless architecture, and IoT Core access design. 1. Overall Architecture Diagram Plain Text [ESP32] … Read more

Comprehensive Analysis of IoT Communication Protocols

Article Word Count: 4000 Content Quality Index:⭐⭐⭐⭐⭐ Introduction: Communication is extremely common and critical for the Internet of Things (IoT). Whether it is short-range wireless transmission technology or mobile communication technology, both impact the development of IoT. Among these, communication protocols are particularly important as they are the rules and agreements that both parties must … Read more

Design of an Intelligent Fan Control System Based on 51 Microcontroller and ESP8266

Design of an Intelligent Fan Control System Based on 51 Microcontroller and ESP8266

In the previous article, we used the ESP8266 (“Sound and Light Guardian”: 51 Microcontroller for Energy-Saving Lighting “Guardian”), today we will first introduce the ESP8266 separately, and then implement the design to control the fan wirelessly (ESP8266). As a pioneer in the Internet of Things (IoT) field, the ESP8266 wireless module has become one of … Read more

Real-Time Messaging Guide Using MQTT and PHP

Real-Time Messaging Guide Using MQTT and PHP

In this tutorial, we will use the <span>php-mqtt/client</span> library, which has the highest download count on Composer. It is a reliable and easy-to-use solution for integrating MQTT into PHP applications. If you are looking for other MQTT client libraries for PHP, you can explore more options on Packagist. Choosing the Best MQTT Client Library for … Read more

Connecting the ESP8266 WiFi Module to OneNet via MQTT Protocol (New Version)

Connecting the ESP8266 WiFi Module to OneNet via MQTT Protocol (New Version)

01 Command Description AT: Test AT startup. AT+RST: Restart the module. ATE: Enable or disable AT echo function. AT+CWMODE: Query/set Wi-Fi mode (Station/SoftAP/Station+SoftAP). AT+CWJAP: Connect to the specified WiFi network. AT+MQTTUSERCFG: Set MQTT user attributes. AT+MQTTLONGCLIENTID: Set MQTT client ID. AT+MQTTLONGUSERNAME: Set MQTT login username. AT+MQTTLONGPASSWORD: Set MQTT login password. AT+MQTTCONNCFG: Set MQTT connection attributes. … Read more

Connecting the BC26 NBIOT Module to Huawei Cloud via MQTT Protocol

Connecting the BC26 NBIOT Module to Huawei Cloud via MQTT Protocol

Command Description Basic AT Commands ATI displays the ID information of the MT AT+CIMI queries the IMSI AT+CGSN queries the product serial number AT+CGATT? queries the current PS domain status AT+QBAND queries or sets the mobile band operation AT+CSQ queries the signal strength AT+CEREG queries the network registration status AT+CGPADDR queries the PDP address MQTT … Read more