增加日志
This commit is contained in:
parent
f5bfdf0468
commit
885edff104
|
@ -1837,7 +1837,7 @@ HGResult HGPdtToolDbDeviceImpl::UploadFile(const HGChar* host, HGUShort port, co
|
|||
CURLcode res = curl_easy_perform(curl);
|
||||
/* Check for errors */
|
||||
if (res != CURLE_OK)
|
||||
fprintf(stderr, "curl_easy_perform() failed: %s\n", curl_easy_strerror(res));
|
||||
HGBase_WriteInfo(HGBASE_INFOTYPE_ERROR, "curl_easy_perform() failed: %s", curl_easy_strerror(res));
|
||||
else
|
||||
ret = HGBASE_ERR_OK;
|
||||
|
||||
|
|
|
@ -12,9 +12,9 @@ int main()
|
|||
//HGPdtToolDb_DownloadFile(userMgr, "G100", "D:\\123.txt");
|
||||
|
||||
HGPdtToolDbDevice device = NULL;
|
||||
HGPdtToolDb_OpenDevice(userMgr, "G123456", &device);
|
||||
HGPdtToolDb_UploadDeviceEntryImage(device, HGPDTTOOLDB_ENTRYNAME_IMAGE_QUALITY, "127.0.0.1", 21, "D:\\1.jpg");
|
||||
HGPdtToolDb_DownloadDeviceEntryImage(device, HGPDTTOOLDB_ENTRYNAME_IMAGE_QUALITY, "127.0.0.1", 21, "D:\\22.jpg");
|
||||
HGPdtToolDb_OpenDevice(userMgr, "G654321", &device);
|
||||
HGPdtToolDb_UploadDeviceEntryImage(device, HGPDTTOOLDB_ENTRYNAME_IMAGE_QUALITY, "192.168.1.70", 21, "D:\\1.jpg");
|
||||
HGPdtToolDb_DownloadDeviceEntryImage(device, HGPDTTOOLDB_ENTRYNAME_IMAGE_QUALITY, "192.168.1.70", 21, "D:\\22.jpg");
|
||||
//HGPdtToolDb_CloseDevice(device);
|
||||
|
||||
HGPdtToolDb_Export(userMgr, "D:\\1.xls");
|
||||
|
|
Loading…
Reference in New Issue