MQTT Protocol Analysis of Himqtt Source Code

MQTT Protocol Analysis of Himqtt Source Code

This article is an excellent piece from the KX Forum Author ID on KX Forum: xiaoduoduo himqtt is the first complete source high-performance MQTT IoT firewall – MQTT Application FireWall, written in C language, using epoll mode to support hundreds of thousands of high concurrent connections for IoT, and is compatible with some ModSecurity rules. … Read more

Beginner Friendly | Quick Steps to Achieve MQTT Communication with Cloud Platform

Beginner Friendly | Quick Steps to Achieve MQTT Communication with Cloud Platform

Introduction to MQTT The MQTT protocol is currently the most popular Internet of Things protocol in the world, bar none. It provides devices with a stable, reliable, and easy-to-use communication foundation. As of now, there are over a hundred million devices connected via the MQTT protocol, widely used in fields such as IoT and M2M. … Read more

Modbus Protocol and Implementation Tutorial

Modbus Protocol and Implementation Tutorial

Modbus Introduction A brand new, customizable Modbus. This is a version you have never seen before. Easy to port and easy to use, with plenty of comments that you will love. The Modbus protocol is the standard communication protocol for industrial control devices, details can be found in the encyclopedia description. Simply put, the Modbus … Read more

Introduction to PWN: Understanding Type Confusion

Introduction to PWN: Understanding Type Confusion

What Is Type Confusion? In high-level programming languages, a variable typically consists of three parts: data type, type name, and value. The type name serves as a marker for distinguishing variables in the programming language (for example, in C, local variable names within a function cannot be repeated within the same scope). The value is … Read more

Detailed Methods and Techniques for GDB Debugging on Linux

Detailed Methods and Techniques for GDB Debugging on Linux

1. Introduction to GDB GDB is a powerful command-line debugging tool released by the GNU open-source organization for UNIX/LINUX operating systems. For a C/C++ programmer working on Linux, GDB is an essential tool; 2. GDB Usage Process Here, we will use a C program for basic demonstration, and the same applies to C++ programs; 1. … Read more

Essential Embedded C Language Macro Techniques You Must Know

Essential Embedded C Language Macro Techniques You Must Know

Word Count: 2000 Practicality Index: ⭐⭐⭐⭐⭐ 01 Macro Print Function In our embedded development, using printf to print some information is a common debugging method. However, when the amount of printed information is large, it can be difficult to know which information is printed in which function. Especially for printing exceptions, we need to quickly … Read more

Common Uses of Preprocessor Directives in Embedded Software

Common Uses of Preprocessor Directives in Embedded Software

Many excellent codes utilize preprocessor directives to enhance their functionality. Today, we will discuss the content related to preprocessor directives. The common preprocessing directives are as follows: # directive, has no effect #include includes a source code file #define defines a macro #undef undefines a macro #if if the given condition is true, compile the … Read more

Comprehensive Guide to Improving Code Portability in Embedded Development

Comprehensive Guide to Improving Code Portability in Embedded Development

Improving code portability in embedded development can be approached from the following aspects: 1. Follow Standards and Specifications 1. Programming Language Standards Strictly adhere to C or C++ language standards, avoiding the use of compiler or platform-specific extensions. For example, avoid using non-standard compiler built-in functions to ensure that the code compiles correctly in different … Read more

Become a Linux Debugging Expert: Unveiling the Secrets of GDB!

Become a Linux Debugging Expert: Unveiling the Secrets of GDB!

Linux | Red Hat Certified | IT Technology | Operations Engineer 👇 Join the technical exchange QQ group with 1000 members. Note 【Official Account】 for faster approval. 1: What is GDB / CGDB GDB is a powerful and user-friendly debugging tool for Linux that allows developers to inspect the internal state of a program during … Read more

Controlling Exported Functions in Linux Shared Libraries

Click the blue text above to follow directly! Convenient for next reading. If this helps you, please give it a thumbs up or a like, thank you~ Article First Published Official Account – Pou Guangming On the third day of diligently working on a business trip in Shanghai…… The previous article introduced the rules for … Read more