Quantcast
Channel: HomeSeer Message Board
Viewing all articles
Browse latest Browse all 4847

Setting parameter

$
0
0
Hey Folks, I was hoping someone could help me using the parameter field... I am unsure how to get it into the html string:

Have the parameter fields set to 17|1 as seen here http://board.homeseer.com/showthread.php?t=172106

Code:


Sub Main
dim s

        Dim ParmArray() As String

ParmArray = Parms.ToString.Split("|")

const server_url = "http://192.168.1.34:8000/GPIO/(ParmArray(0))/value/(ParmArray(1))"
const headers="Content-Type: application/x-www-form-urlencoded"
const data=""

s = hs.URLAction(server_url, "POST", data, headers)
End Sub

Running script, script run or compile error in file: C:/Program Files (x86)/HomeSeer HS3/scripts/PiLight - WebIoPi.txt1025:Expected end of statement in line 4 More info: Expected end of statement


Thanks in advance!

Viewing all articles
Browse latest Browse all 4847

Trending Articles