DeterministicESPAsyncWebServer v6.27.1
Zero-allocation, bounded-execution async HTTP server for ESP32
Loading...
Searching...
No Matches
modbus_master.h File Reference

Modbus TCP master codec + register scanner (DETWS_ENABLE_MODBUS_MASTER). More...

#include "ServerConfig.h"
#include <stddef.h>
#include <stdint.h>

Go to the source code of this file.

Detailed Description

Modbus TCP master codec + register scanner (DETWS_ENABLE_MODBUS_MASTER).

The master/client side of Modbus: build a read-request ADU (MBAP header + PDU) and parse the slave's response into register values, so an application can poll or auto-discover a slave's registers. Pure - no sockets, no heap - so it is host-tested as a full round-trip against the slave codec (modbus_process_adu). The app supplies the transport (send the ADU, receive the reply).

Auto-discovery pattern: walk the address space one read at a time; a register exists where the response parses without a Modbus exception.

Author
Douglas Quigg (dstroy0)
Date
2026

Definition in file modbus_master.h.