SolarEnergy/esp32_device/main/dev_name.h

29 lines
405 B
C
Raw Normal View History

2024-07-27 13:31:17 +00:00
/**
* Device name management
*/
#pragma once
#include <stdbool.h>
#ifdef __cplusplus
extern "C"
{
#endif
/**
* Generate random device name, if not existent
*/
2024-07-27 14:15:35 +00:00
bool dev_generate_name();
2024-07-27 13:31:17 +00:00
/**
* 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