ProtoCore v0.0.2
Deterministic, zero-heap network stack for embedded targets
Loading...
Searching...
No Matches
wisun.h File Reference

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

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

Go to the source code of this file.

Detailed Description

Wi-SUN FAN border-router connector (PC_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 pc_ip 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 pc_udp; the specific devboard only sets which border router you point at, not this code.

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

Definition in file wisun.h.