|
DeterministicESPAsyncWebServer v6.28.0
Zero-allocation, bounded-execution async HTTP server for ESP32
|
LonWorks / LON-IP (ISO/IEC 14908) network-variable codec (DETWS_ENABLE_LONWORKS). More...
Go to the source code of this file.
LonWorks / LON-IP (ISO/IEC 14908) network-variable codec (DETWS_ENABLE_LONWORKS).
LonWorks is the ISO/IEC 14908 building-automation network. Devices exchange network variables (SNVTs - Standard Network Variable Types) as LonTalk application PDUs. LON/IP (14908-4) tunnels those PDUs over UDP so a device speaks LON without a Neuron chip. This codec builds/parses the LonTalk application-layer message a network-variable update carries:
[msg-code : 1][nv-selector : 2 (14-bit, big-endian)][value...]
where the message code identifies a NetVar update (0x80 | direction), the selector addresses the bound network variable, and the value is the SNVT-encoded data. It also provides the two most-common SNVT scalar encodings: SNVT_temp (temperature, 0.01 K resolution, offset) and SNVT_switch (a level 0..100.5% + a state), so an app reads/writes those without a full SNVT table. Pure, zero heap, no stdlib, host-testable; the LON/IP UDP transport is the shipped UDP layer.
Definition in file lonworks.h.