24 lines
409 B
C
24 lines
409 B
C
#ifndef POWER_SETTINGS_API_H_
|
|
#define POWER_SETTINGS_API_H_
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include "esp_http_server.h"
|
|
|
|
/**
|
|
* @brief Register power configuration REST handlers.
|
|
*
|
|
* Endpoint:
|
|
* GET /api/v1/config/power
|
|
* POST /api/v1/config/power
|
|
*/
|
|
void register_power_settings_handlers(httpd_handle_t server, void *ctx);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* POWER_SETTINGS_API_H_ */
|