01 Overview
Modbus is one of the most common industrial protocols, and ESP-IDF provides official master/slave examples (path may shift slightly by IDF version).
It solves heterogeneous device interconnection: PLCs, meters, and VFDs often only speak Modbus, and ESP32 can bridge them to Wi-Fi or the cloud.
Use it when integrating with existing industrial hosts, sensor acquisition, or remote monitoring.
Skip it for consumer app control; BLE or HTTP is more appropriate.
Modbus has two physical layers: RTU over serial (usually RS485) and TCP over Ethernet or Wi-Fi.
This page focuses on ESP32 as a slave or master implementation points.