|
ProtoCore v0.0.1
Deterministic, zero-heap network stack for embedded targets
|
Stable device UUID derived from the chip MAC (PC_ENABLE_DEVICE_ID). More...
Go to the source code of this file.
Stable device UUID derived from the chip MAC (PC_ENABLE_DEVICE_ID).
pc_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. pc_device_uuid() reads the ESP32 factory MAC and formats it (ESP32 only). Pure, host-testable core; no heap.
Definition in file device_id.h.