This is my first attempt at HttpGet
- I have already successfully done a get from the command line to my ‘new’ device:
> httpget -r -S "*SRDC2/r" 192.168.1.220:1000
My OptoScript code is the following:
> stWeather_Send = "*SRH2/r"; > > iWeather_Cmd_Status = HttpGet( > stWeather_Resp, > stWeather_Resp_Hdr, > stWeather_Send, > 0, > "/", > iHttpGet_Cmd_Status, > 1000, > "192.168.1.220");
My variable iHttpGet_Cmd_Status is returning 0, but
My variable iWeather_Cmd_Status is returning -40, Not Enough Data Returned
And nothing is loaded into my string.
Any thoughts on what to try from here? I have already tried making my string tables arbitrarily larger (100 entries, 1024 wide) since I started them at minimal sizes. Also, I have experimented with the forslash or backslash in the string command, either works in the command line, and neither has an effect in OptoScript.