更新UI。增加时间和IP显示
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user