|
|
|
@ -1522,7 +1522,10 @@ bool CPhoneDevice::TakePhoto(const IDevice::PHOTO_INFO& photoInfo, const vector<
|
|
|
|
|
std::this_thread::sleep_for(std::chrono::milliseconds(128));
|
|
|
|
|
|
|
|
|
|
NET_PHOTO_INFO netPhotoInfo = { 0 };
|
|
|
|
|
strcpy(netPhotoInfo.ip, "192.168.19.107");
|
|
|
|
|
|
|
|
|
|
struct in_addr addr;
|
|
|
|
|
addr.s_addr = localPhotoInfo.ip;
|
|
|
|
|
strcpy(netPhotoInfo.ip, inet_ntoa(addr));
|
|
|
|
|
strcpy(netPhotoInfo.url, "/cgi-bin/snapshot.cgi");
|
|
|
|
|
strcpy(netPhotoInfo.outputPath, path.c_str());
|
|
|
|
|
|
|
|
|
|