ProtoCore v1.0.16
Deterministic, zero-heap network stack for embedded targets
Loading...
Searching...
No Matches
device_id.h File Reference

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

#include "protocore_config.h"

Go to the source code of this file.

Detailed Description

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

protocore_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. protocore_device_uuid() reads the part's factory MAC and formats it. Pure, host-testable core; no heap.

Author
Douglas Quigg (dstroy0)
Date
2026

Definition in file device_id.h.