动态ip在摄像头里的应用4 点击:304 | 回复:0



PLC酷客

    
  • [版主]
  • 精华:9帖
  • 求助:31帖
  • 帖子:1460帖 | 7990回
  • 年度积分:457
  • 历史总积分:59176
  • 注册:2004年7月13日
发表于:2013-09-21 13:33:57
楼主

动态ip在摄像头里的应用4

 

 

 

 

3.脚本
得到ip地址后,我们还需通过脚本gotoip.scr
组合成摄像头ip
set txt [GETVAL DPriIp]
set tempip http://[string range $txt 0 [string first : $txt]]82/index.htm

GOTO URL=$tempip

其中[string range $txt 0 [string first : $txt]]
[string first : $txt]得到ip地址中“:”地所在位置
[string range $txt 0 n]截取变量txt的内容,从0到n
最后,前面加“http://”,后面加“82/index.htm”,得到动态ip摄像头的完整地址,并显示在webaccess中

 

 



楼主最近还看过


热门招聘
相关主题

官方公众号

智造工程师