Intentar ORO - Gratis
Hit Me Up On TCP - Part 2 Using TCP/IP for transferring data, MQTT is lightweight and simple-to-use
Circuit Cellar
|August 2024
This is the second in a two-part series where Pedro highlights network communication using ESP32 SOC and the ESP-IDF framework. Part two shows how to establish a multiple-end communication through MQTT, with an ESP32 SOC on one end to another end that can be anything capable of communicating through MQTT. Transport fundamentals are covered through a practical example showing how an ESP32-S2 SoC communicates using MQTT.

Embedded systems are nearly ubiquitous in our lives, affecting both developers and everyday users. Almost every electronic and electrical device around us relies on embedded systems, from smartwatches and phones to modern vehicles like electric cars, electric buses and rental bikes.
The widespread presence of these systems introduces a critical requirement: network communication capability. Many of these devices, integral to our daily routines, need to communicate with other devices or even cloud services to enhance our comfort and efficiency in daily tasks. Consequently, network communication capability - whether local or over the Internet has become a fundamental requirement for embedded systems solutions.
This article explores one of the most popular and scalable methods to allow embedded systems' communication over the network: MQTT. It covers from TCP sockets fundamentals to a practical example on how to communicate to an ESP32-S2 SoC using MQTT communication protocol.
MQTT OVERVIEW
A good start point is to define what MQTT is. MQTT stands for Message Queuing Telemetry Transport, and it was created by IBM in the late 90s. MQTT uses TCP/IP as a layer for transferring data, and has been designed to be a lightweight and simpleto-use network protocol, working with the publish-subscribe paradigm, as seen in the MQTT simplified diagram shown in Figure 1.

Esta historia es de la edición August 2024 de Circuit Cellar.
Suscríbete a Magzter GOLD para acceder a miles de historias premium seleccionadas y a más de 9000 revistas y periódicos.
¿Ya eres suscriptor? Iniciar sesión
MÁS HISTORIAS DE Circuit Cellar

Circuit Cellar
Bourns Announces New Micro Encoders Offering High Reliability in a Compact Design
Bourns, Inc., a leading manufacturer and supplier of electronic components for power, protection, and sensing solutions, announced its PEC04 Series 4mm Incremental Micro Encoder, its PEC05 Series 5mm Incremental Micro Encoder and its Model PEC06, a 6mm Incremental Micro Encoder. Bourns new micro encoders provide position and speed information essential for control functions in a broad variety of electronic applications.
1 min
September 2025

Circuit Cellar
Harwin Brings Through-Hole Retention to Industrial Kontrol Range of Connectors
Harwin has extended its Kontrol lineup of connectors for industrial and embedded applications, adding through-hole retention to further enhance resilience and board-level reliability in harsh operational environments. Harwin has added 72 new products to the industrial connector family, extending the range by 48%.
1 min
September 2025

Circuit Cellar
Renesas Introduces 64-bit RZ/G3E MPU for High-Performance HMI Systems Requiring AI Acceleration and Edge Computing
Renesas Electronics Corp., a premier supplier of advanced semiconductor solutions, announced the launch of its new 64-bit RZ/G3E microprocessor (MPU), a general-purpose device optimized for high-performance Human Machine Interface (HMI) applications.
1 mins
September 2025

Circuit Cellar
Build a Follower Counter for Social Media
See Real-Time Metrics Using an Arduino Yún
20 mins
September 2025

Circuit Cellar
Nordic Semiconductor Announces Highly Integrated nPM3104 Power Management IC With Support For Small-Size Battery Products
Nordic Semiconductor announced the new nPM1304 Power Management IC (PMIC). Building on the success formula of the well-established nPM1300, the nPM1304 offers the ideal solution for space-constrained applications that require small batteries.
2 mins
September 2025

Circuit Cellar
Chaos on Your Desktop
Build a Color-Pulsing Light Sphere Using a PIC or Raspberry Pi Pico MCU
9 mins
September 2025

Circuit Cellar
NXP’s New Battery Cell Control IC Family Advances New Energy Solutions
NXP Semiconductors announced its new 18-channel Li-ion battery cell controller, the BMx7318/7518 IC family, designed for electric vehicle (EV) high-voltage battery management systems (HVBMS), industrial energy storage systems (ESS) and 48V battery management systems.
1 mins
September 2025

Circuit Cellar
Autonomous Mobile Robots
Robots Moving to Their Own Beat
12 mins
September 2025

Circuit Cellar
The DVM on Your Wrist
A Wireless Link Between A DVM and a Smart Watch
18 mins
September 2025

Circuit Cellar
Control Your Local IoT Network from the Cloud
Secrets of “Cloud Relaying” Revealed
5 mins
September 2025
Listen
Translate
Change font size