Thanks guys, received my latest board on Friday (but was interstate and didn't get to play with it until now) v03.02.17a
(Stupid server won't take my post, trying to edit it in a little at a time)
I've started with webset (since it's one I have immediate need of). The documentation is somewhat unclear, so I've been trying to track down exactly what it's doing. I have a very simple CGI that does nothing other than return some numbers. Currently returning 10-digit unique number of the form YYYYhhmmss
My cgi is this:
#! /bin/sh
echo "content-type: text/plain"
echo ""
date +"SET_WC=%Y%H%M%Sabcdefghij"
The webcontrol code is quite simple too:
START
WEBSET URL1 VAR1
set var2 0
lp:
set var3 wsrply
delay 1000
inc var2
tstlt var2 20
goto lp
inc var1
END
I see, every 20 seconds, a new value arrive for wsrply which is loaded into var3. Now it's 2013155355
Which is exactly what I expect. 2013 (year), 15 53 55 (it was 3:53pm and 55 seconds).
The interesting thing is, this ONLY WORKS if there are enough characters AFTER the "webset=xxxx" for the webcontrol to store the number!
If my CGI has this line: date +"SET_WC=%Y%H%M%Sabcd"
then the wc shows only: "2013". ("abcd" is 4 chars and that's all I get).
If my cgi has: date +"SET_WC=%Y%H%M%Sab"
then the wc shows "20"
If my cgi has: date +"SET_WC=%Y%H%M%Sabcdefg"
then the wc shows "2013155"
The full measure of data is definately sent from the apache webserver, so it's something within the WC.
Simply sending padding information after the data is a temporary work-around for me - but it'd be nice if the docs indicated the need for it, or if the code was fixed to not require it
(Stupid server won't take my post, trying to edit it in a little at a time)
I've started with webset (since it's one I have immediate need of). The documentation is somewhat unclear, so I've been trying to track down exactly what it's doing. I have a very simple CGI that does nothing other than return some numbers. Currently returning 10-digit unique number of the form YYYYhhmmss
My cgi is this:
#! /bin/sh
echo "content-type: text/plain"
echo ""
date +"SET_WC=%Y%H%M%Sabcdefghij"
The webcontrol code is quite simple too:
START
WEBSET URL1 VAR1
set var2 0
lp:
set var3 wsrply
delay 1000
inc var2
tstlt var2 20
goto lp
inc var1
END
I see, every 20 seconds, a new value arrive for wsrply which is loaded into var3. Now it's 2013155355
Which is exactly what I expect. 2013 (year), 15 53 55 (it was 3:53pm and 55 seconds).
The interesting thing is, this ONLY WORKS if there are enough characters AFTER the "webset=xxxx" for the webcontrol to store the number!
If my CGI has this line: date +"SET_WC=%Y%H%M%Sabcd"
then the wc shows only: "2013". ("abcd" is 4 chars and that's all I get).
If my cgi has: date +"SET_WC=%Y%H%M%Sab"
then the wc shows "20"
If my cgi has: date +"SET_WC=%Y%H%M%Sabcdefg"
then the wc shows "2013155"
The full measure of data is definately sent from the apache webserver, so it's something within the WC.
Simply sending padding information after the data is a temporary work-around for me - but it'd be nice if the docs indicated the need for it, or if the code was fixed to not require it