Instructions
399 C-Control Pro IDE
© 2013 Conrad Electronic
void WEB_SetDynVar(word indx, ptr var_addr[], byte type, byte flags,
byte len);
Sub WEB_SetDynVar(indx As Word, var_addr As Pointer, type As Byte, flags
As Byte, len As Byte)
Description
Defines a dynamic variable on its index, address and variable type. The len parameter is important
for string variables, other types ignore this parameter. You can specify multiple flags simultaneously
by ORing values.
The number of dynamic variables used must correspond with the definition in the WEB_BUF
macro and dynvar_cnt in WEB_StartServer.
Parameter
indx index of variable
var_addr address of variable
type variable type
flags property of variable
len length (0 to 255) only for strings
Type Definitions
Definition
Meaning
DYN_BYTE
8-Bit without sign
DYN_CHAR
8-Bit with sign
DYN_INT
16-Bit with sign
DYN_INTEGER
16-Bit with sign
DYN_WORD
16-Bit without sign
DYN_UINTEGER
16-Bit without sign
DYN_LONG
32-Bit with sign
DYN_DWORD
32-Bit without sign
DYN_ULONG
32-Bit without sign
DYN_STR
character array
DYN_FLOAT
floating point
DYN_SINGLE
floating point
Flag Definitions
Definition
Meaning
DYN_CGIVAR
can be changed in URL
DYN_JSONVAR
variable in JSON list