动态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中

楼主最近还看过
[5592]
[2964]
[4894]
[3427]
[2641]
[4582]
[9584]
[4575]
[3126]
[2346]

客服
小程序
公众号