V4.4.18 update

This commit is contained in:
CChen616
2024-04-09 15:18:07 +08:00
parent d627567d0f
commit 474b134e40
15 changed files with 416 additions and 194 deletions

View File

@@ -7,3 +7,11 @@ std::string get_wlan0_ip() {
printf("%s", result);
return result;
}
std::string get_eth0_ip() {
char result[MAX_FILE_LEN] = {0};
std::string cmd = "ifconfig eth0 | awk 'NR==2{print $2}' | tr -d '\n\r'";
execute_cmd(cmd.data(), result);
printf("%s", result);
return result;
}