网络摄像机ip地址的属性设置

hdrplus
Matthew 7 months ago
parent 7bdde7b70d
commit 70075a0ecc

@ -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());

Loading…
Cancel
Save