1 Star 4 Fork 2

light_years/onvif_http_C

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
test.c 452 Bytes
一键复制 编辑 原始数据 按行查看 历史
light_years 提交于 2022-03-15 01:55 . 重命名 test.cpp 为 test.c
#include "onvif_http.h"
int main()
{
onvif_http_init();
//ȡtoken
char* ptoken = get_profiletoken();
if (!ptoken)
{
printf("can not get token\n");
return -1;
}
int j = 0;
while (1)
{
char* url = get_snapshot_uri(ptoken);
if (!url)
{
printf("can not get snapShotUri\n");
return -1;
}
get_snapshot_img(url);
j++;
sleep(1);
if (j > 10)
break;
}
onvif_http_clean();
return 0;
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/light__years/onvif_http.git
git@gitee.com:light__years/onvif_http.git
light__years
onvif_http
onvif_http_C
master

搜索帮助

D67c1975 1850385 1daf7b77 1850385