|
DeterministicESPAsyncWebServer v6.27.1
Zero-allocation, bounded-execution async HTTP server for ESP32
|
SunSpec Modbus device-information-model codec (DETWS_ENABLE_SUNSPEC) - zero-heap model-chain walker + register-point readers and a map builder, layered on the holding-register model so a solar inverter / meter / battery is interoperable. More...
#include "ServerConfig.h"Go to the source code of this file.
SunSpec Modbus device-information-model codec (DETWS_ENABLE_SUNSPEC) - zero-heap model-chain walker + register-point readers and a map builder, layered on the holding-register model so a solar inverter / meter / battery is interoperable.
A SunSpec map (SunSpec Device Information Model) lives in a contiguous holding-register block and is laid out as raw big-endian 16-bit registers:
Length L is the number of registers after the length point (the model body). Models are contiguous (no gap between them). Common model = ID 1.
The reader is a cursor over the received register bytes (big-endian, 2 bytes/register): verify the marker, then walk each model and read typed points by register offset. The writer emits the same layout (marker, model headers + points, end model) for a device exposing its own map. Marker / header format verified against the SunSpec spec.
Definition in file sunspec.h.