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

Stable device UUID derived from the chip MAC (DETWS_ENABLE_DEVICE_ID). More...

#include "ServerConfig.h"
#include <stdint.h>

Go to the source code of this file.

Detailed Description

Stable device UUID derived from the chip MAC (DETWS_ENABLE_DEVICE_ID).

detws_uuid_from_mac() computes a deterministic RFC 4122 version-5 UUID from a 6-byte MAC: namespace = the RFC 4122 DNS namespace, name = the lowercase MAC hex, hashed with the library's SHA-1. The same MAC always yields the same UUID, so it is a stable device identity (mDNS hostname, MQTT client ID, ...) that needs no storage. detws_device_uuid() reads the ESP32 factory MAC and formats it (ESP32 only). Pure, host-testable core; no heap.

Author
Douglas Quigg (dstroy0)
Date
2026

Definition in file device_id.h.