增加日志

This commit is contained in:
luoliangyi 2022-12-27 16:30:54 +08:00
parent f5bfdf0468
commit 885edff104
2 changed files with 4 additions and 4 deletions

View File

@ -1837,7 +1837,7 @@ HGResult HGPdtToolDbDeviceImpl::UploadFile(const HGChar* host, HGUShort port, co
CURLcode res = curl_easy_perform(curl); CURLcode res = curl_easy_perform(curl);
/* Check for errors */ /* Check for errors */
if (res != CURLE_OK) 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 else
ret = HGBASE_ERR_OK; ret = HGBASE_ERR_OK;

View File

@ -12,9 +12,9 @@ int main()
//HGPdtToolDb_DownloadFile(userMgr, "G100", "D:\\123.txt"); //HGPdtToolDb_DownloadFile(userMgr, "G100", "D:\\123.txt");
HGPdtToolDbDevice device = NULL; HGPdtToolDbDevice device = NULL;
HGPdtToolDb_OpenDevice(userMgr, "G123456", &device); HGPdtToolDb_OpenDevice(userMgr, "G654321", &device);
HGPdtToolDb_UploadDeviceEntryImage(device, HGPDTTOOLDB_ENTRYNAME_IMAGE_QUALITY, "127.0.0.1", 21, "D:\\1.jpg"); HGPdtToolDb_UploadDeviceEntryImage(device, HGPDTTOOLDB_ENTRYNAME_IMAGE_QUALITY, "192.168.1.70", 21, "D:\\1.jpg");
HGPdtToolDb_DownloadDeviceEntryImage(device, HGPDTTOOLDB_ENTRYNAME_IMAGE_QUALITY, "127.0.0.1", 21, "D:\\22.jpg"); HGPdtToolDb_DownloadDeviceEntryImage(device, HGPDTTOOLDB_ENTRYNAME_IMAGE_QUALITY, "192.168.1.70", 21, "D:\\22.jpg");
//HGPdtToolDb_CloseDevice(device); //HGPdtToolDb_CloseDevice(device);
HGPdtToolDb_Export(userMgr, "D:\\1.xls"); HGPdtToolDb_Export(userMgr, "D:\\1.xls");