12 lines
336 B
C
12 lines
336 B
C
|
|
#pragma once
|
||
|
|
|
||
|
|
#include "esp_err.h"
|
||
|
|
#include <stddef.h>
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Execute set_timezone tool.
|
||
|
|
* Sets the system timezone via NVS and updates the TZ environment variable.
|
||
|
|
* Input JSON: {"timezone": "CST-8"} or {"timezone": "Asia/Shanghai"}
|
||
|
|
*/
|
||
|
|
esp_err_t tool_set_timezone_execute(const char *input_json, char *output, size_t output_size);
|