Initial commit

This commit is contained in:
CChen616
2024-03-19 15:48:17 +08:00
parent 2ae601ba66
commit 1023fb5796
82 changed files with 43002 additions and 1 deletions

9
src/MakerbaseNetwork.cpp Normal file
View File

@@ -0,0 +1,9 @@
#include "../include/MakerbaseNetwork.h"
std::string get_wlan0_ip() {
char result[MAX_FILE_LEN] = {0};
std::string cmd = "ifconfig wlan0 | awk 'NR==2{print $2}' | tr -d '\n\r'";
execute_cmd(cmd.data(), result);
printf("%s", result);
return result;
}