NET_DVR_DEVICEINFO_V30 struDeviceInfo;
char ip_address [] = "192.168.1.64";
WORD port = 8000;
char user_name [] = "admin";
char password [] = "12345abc";
printf("try to connect...\n");
/lUserID = NET_DVR_Login_V40(&struLoginInfo, &struDeviceInfoV40);
lUserID = NET_DVR_Login_V30(ip_address, port, user_name, password, &struDeviceInfo);
if (lUserID < 0)
{
printf("Login failed, error code: %d\n", NET_DVR_GetLastError());
NET_DVR_Cleanup();
return;
}
printf("connection established.");
Here is my code, im getting error no 29 and can not figure out why. Can connect to camera via ip but can not connect it with script.
char ip_address [] = "192.168.1.64";
WORD port = 8000;
char user_name [] = "admin";
char password [] = "12345abc";
printf("try to connect...\n");
/lUserID = NET_DVR_Login_V40(&struLoginInfo, &struDeviceInfoV40);
lUserID = NET_DVR_Login_V30(ip_address, port, user_name, password, &struDeviceInfo);
if (lUserID < 0)
{
printf("Login failed, error code: %d\n", NET_DVR_GetLastError());
NET_DVR_Cleanup();
return;
}
printf("connection established.");
Here is my code, im getting error no 29 and can not figure out why. Can connect to camera via ip but can not connect it with script.