node_uuid()

node_uuid()#

The node_uuid() function retrieves a unique identifier for the current machine. On Linux, it reads or generates a UUID stored in /yuneta/store/agent/uuid/uuid.json. On ESP32, it derives the UUID from the device’s MAC address.

Prototype

const char *node_uuid(void);

Parameters

Key

Type

Description

-

-

This function does not take any parameters.


Return Value

Returns a pointer to a string containing the unique node UUID.

Notes

The returned UUID is generated once and stored persistently. On Linux, if the UUID file does not exist, a new one is created. On ESP32, the UUID is derived from the MAC address.

Prototype

// Not applicable in JS

Prototype

# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples