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

Wi-SUN FAN border-router connector (DETWS_ENABLE_WISUN). More...

#include "ServerConfig.h"
#include "network_drivers/network/ip.h"
#include <stddef.h>
#include <stdint.h>

Go to the source code of this file.

Detailed Description

Wi-SUN FAN border-router connector (DETWS_ENABLE_WISUN).

Wi-SUN FAN is an IPv6 / UDP / CoAP mesh, not a byte-level radio the ESP32 drives - the FAN radio is terminated by a border router / devboard and each mesh node is reached as an ordinary IPv6 CoAP endpoint. So the connector rides the existing IP stack: it keeps a table of the FAN nodes (their IPv6 DetIp addresses + join state) behind the border router, and builds the CoAP client requests to their resources (the CoAP service ships a server, so the client-request builder is here). The app sends the built PDU to the node's address over det_udp; the specific devboard only sets which border router you point at, not this code.

Pure: wisun_build_coap frames an RFC 7252 request (header + Uri-Path options + payload), the node registry tracks the mesh, and wisun_nodes_json exposes it to the web. No heap, no stdlib, host-testable.

Definition in file wisun.h.