Is it possible to have the value of certain status items on the Flexy available as a tag value? For example I know we can setup the GSM_LEV as a tag on the Flexy. Can we also setup MBSRdTcpErr from the estat.htm file as a tag being watched in an IO server on the unit?
You can parse the estat.htm file using basic scripting.
Example below:
InitSection:
TSET 1,10 // 10 second timer
ONTIMER 1, "goto GetMBSRd"
GetMBSRd:
OPEN "exp:$dtES $ftT" FOR TEXT INPUT AS 1
LoopThroughLines:
line$ = GET 1
lineLength% = LEN line$
K% = INSTR 1,line$,"MBSRdTcpErr"
IF(K% = 1) THEN
A$ = line$(13) // index 13 of the string MBSRdTCPErr:0
currentValue% = VAL A$
Mytag@ = currentValue% // assigns tag value here
ELSE
GOTO LoopThroughLines
ENDIF
Close 1
END
This example is based off the developer example, located here:
https://developer.ewon.biz/content/how-parse-file