Poging GOUD - Vrij
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.

Dit verhaal komt uit de August 2024-editie van Circuit Cellar.
Abonneer u op Magzter GOLD voor toegang tot duizenden zorgvuldig samengestelde premiumverhalen en meer dan 9000 tijdschriften en kranten.
Bent u al abonnee? Aanmelden
MEER VERHALEN VAN Circuit Cellar
Circuit Cellar
A GPS-Disciplined Frequency Counter using the PSoC 5LP
In this month's column, Brian tasks one of his mixed-signal favorite MCUs, the Infineon PSoC 5LP, to build a frequency/ period counter using a GPS satellite module to discipline the project's time base.
16 mins
November 2025
Circuit Cellar
Designing Analog Electronics
Part 1: Error and Uncertainty
23 mins
November 2025
Circuit Cellar
Samtec Launches 800-Position AcceleRate HP High-Performance Array Connectors
Samtec, Inc., a global leader in high-performance interconnect solutions and a service leader in the industry, announces the expansion of its AcceleRate HP product line with the release of 800-position APM6 and APF6 high-performance array connectors available in a low-profile 5mm stack height.
1 min
November 2025
Circuit Cellar
CIA for SBCs (and More)
Securing Embedded Systems from Evolving Threats
14 mins
November 2025
Circuit Cellar
The Future of Embedded Systems and AI: AI in Embedded Systems
Cybersecurity Challenges and Opportunities in a Smarter World
4 mins
November 2025
Circuit Cellar
An ESP32 Dashboard
Monitoring How a Popular Microcontroller Uses Resources
11 mins
November 2025
Circuit Cellar
Vishay Intertechnology Power Metal Strip Resistor Delivers Power to 5 W in Compact 1206 Case Size
Vishay Intertechnology, Inc. introduced a new surfacemount Power Metal Strip current sense resistor that combines a high power rating up to 5W, TCR down to ± 75ppm/°C, and extremely low resistance values down to 0.3mΩ in the compact 1206 case size.
2 mins
November 2025
Circuit Cellar
ROHM Develops New Smart Switches Optimized for Zonal Controllers
ROHM Semiconductor announced the release of six new high-side smart switches (IPDs: Intelligent Power Devices) featuring highly accurate current sensing and low ON resistances ranging from 9mΩ to 180mΩ.
1 min
November 2025
Circuit Cellar
Bourns Expands Semi-Shielded Power Inductor Portfolio with New Series Featuring Higher Maximum Inductance Values
Bourns, Inc., a leading manufacturer and supplier of electronic components for power, protection, and sensing solutions, announced the expansion of its semi-shielded power inductors.
1 min
November 2025
Circuit Cellar
STMicroelectronics' New Automotive Linear Voltage Regulator Preserves Battery Energy in Challenging Conditions
The TL99VR03 300mA low-dropout (LDO) regulator provides resilient and efficient power, with a wide input-voltage range and very low quiescent current consumption, only 3.5µA at no load. The IC has an enable pin for turning the regulator off, which reduces the idle current to 800nA, and integrates soft-start circuitry to limit current during power-up and fault recovery.
1 min
November 2025
Listen
Translate
Change font size
