wangzhengquan
2020-06-30 9b2d472b92665ab6afac8dcca9683c759b3fbb8a
device/test.c
@@ -1,6 +1,5 @@
#include "usg_common.h"
#include "netdisk.h"
#include "hcnetdisk.h"
@@ -19,7 +18,7 @@
   loginInfo.password = "a1234567";
   netdisk->login(loginInfo);
   std::cout << "起始通道:" << netdisk->getStartChannel() << ", 最大通道号:" << netdisk->getMaxChannels() << std::endl;
   //std::cout << "起始通道:" << netdisk->getStartChannel() << ", 最大通道号:" << netdisk->getMaxChannels() << std::endl;
   
   //下载
@@ -36,8 +35,8 @@
   request.end.tm_year = 2020-1900; // 这个时间类型从1900开始算作第一年
   request.end.tm_mon = 4-1; // 0是第一个月
   request.end.tm_mday = 10;
   request.end.tm_hour = 15;
   request.end.tm_min = 20;
   request.end.tm_hour = 14;
   request.end.tm_min = 21;
   request.end.tm_sec = 0;
   request.channel = 1;
@@ -59,7 +58,7 @@
int main() {
   Netdisk_EnvConfig config;
   config.libpath = "../hclib/";
   config.libpath = "../lib/hc";
   HCNetdisk::netdisk_init(&config);
   test1();