更新UI。增加时间和IP显示

This commit is contained in:
Wang Beihong
2026-04-20 23:15:12 +08:00
parent e881f82bd9
commit f426d52175
22 changed files with 2946 additions and 357 deletions

View File

@@ -139,4 +139,27 @@ const char *get_var_light_status() {
void set_var_light_status(const char *value) {
strncpy(light_status, value, sizeof(light_status) / sizeof(char));
light_status[sizeof(light_status) / sizeof(char) - 1] = 0;
}
}
char local_time[100] = { 0 };
const char *get_var_local_time() {
return local_time;
}
void set_var_local_time(const char *value) {
strncpy(local_time, value, sizeof(local_time) / sizeof(char));
local_time[sizeof(local_time) / sizeof(char) - 1] = 0;
}
char system_ip[100] = { 0 };
const char *get_var_system_ip() {
return system_ip;
}
void set_var_system_ip(const char *value) {
strncpy(system_ip, value, sizeof(system_ip) / sizeof(char));
system_ip[sizeof(system_ip) / sizeof(char) - 1] = 0;
}