Skip to main content

Module device

Module device 

Source
Expand description

Runtime device facade (spec §32.4): binds a Transport to one parsed device profile for point- and measurand-based reads/writes, with no codegen. Port of moddef-ts Device / go/client/client.go.

SunSpec model_relative_offset is resolved against the model ID register (offset 0 = model id, 1 = length, data at 2+) per spec §7.3 — the same convention as the Go/TS clients and the profiles in devices/.

Shared limitation kept in lockstep with Go/TS: composed (multi-register mantissa/exponent) points decode via the codec directly, not through the facade.

Structs§

Device
The untyped runtime facade over one device profile. Generated typed clients (moddef-codegen) skip this and use static descriptor tables.