This commit is contained in:
2025-09-28 16:31:50 +08:00
parent 8587e5c84a
commit 0eb94c9e11
10 changed files with 171 additions and 2 deletions

BIN
ApCreate/bin/wifi Executable file

Binary file not shown.

View File

@@ -33,7 +33,6 @@ bp::child net_proc; // 开启网络进程
string filepath = "/home/orangepi/InitAuth/conf/.env";
string cameraPath = "/opt/rknn-yolov11/.env";
string passwd = "/home/orangepi/InitAuth/pwd/.env";
// string cameraPath = "/home/orangepi/InitAuth/.env";
string url = "http://116.147.36.110:8095/device/validateDevice";
@@ -130,6 +129,7 @@ int main(int argc, char *argv[])
}
}
//开启服务
thread(StartService).detach();
thread Rtsp(OpenRTSP);
@@ -152,7 +152,7 @@ int main(int argc, char *argv[])
// 开启服务
void StartService()
{
string commnd = "echo 'orangepi' | sudo -S ../../StartService/start start";
string commnd = "echo 'orangepi' | sudo -S ../../StartService/bin/start start";
system(commnd.c_str());
}