SolarEnergy/esp32_device/main/dev_name.h
2024-07-27 16:15:35 +02:00

29 lines
405 B
C

/**
* Device name management
*/
#pragma once
#include <stdbool.h>
#ifdef __cplusplus
extern "C"
{
#endif
/**
* Generate random device name, if not existent
*/
bool dev_generate_name();
/**
* Get current device name. This value MUST be freed after usage
*
* @return NULL if no name was already defined.
*/
char *dev_name();
#ifdef __cplusplus
}
#endif