![background image](http://html1.mh-extra.com/html/xantech/crm-wic/crm-wic_reference-manual_3156372092.webp)
92
Parameters
VarId
[in] ID of the Variable.
Name
[in] Name of the specified Variable (can be modified).
Type
[in] Variable type
Valid types are:
Type
Value Description
1 Number
2 Schedule
3 String
4 Range
Default
[in] Default value for the Variable.
Value
[in] Current value for the Variable.
Persist
[in] Set to 1 to make the Variable persistent. Set to 0 otherwise.
Success
[out, retval] TRUE if specified variable settings were updated, FALSE if updating the variable failed.
Remarks
Variable names consist of letters, numbers, and the underscore. All other characters are not permitted.
Default and Value
The returned value is a string that represents the stored value of the Variable. The string value will need to be converted by
the caller into the actual type, e.g. a variable of type
long
.
The format for the returned string depends on the Variable’s type. In the examples below, %d represents an integer, %s
represents a string.
Type Format Example
Number "%d"
“25”
String
“%s”
“This is a string”
Range
“%d to %d”
“1 to 35”
Schedule
"%d:%d:%d" “17:35:02”
Persistence
When a Variable is persistent, the value of the variable is stored to permanent storage each time it is changed. So, if the
device is reset or the power is turned off, the Variable will still have its last value when the system restarts.
If the variable is not persistent, then the Variable’s value is set to its default whenever the system restarts.
Summary of Contents for CRM-WIC
Page 1: ...Reference Manual Programming Guide Room Monitor Web Intelligent Controller Model CRM WIC...
Page 8: ...8 Hardware User Interface Hardware User Interface for the CRM WIC...
Page 16: ...16 For full details see the RPC section at the end of this manual...
Page 43: ...43 This expression resolves to this value 0 1 4 3 1 Hello Hello 0...
Page 98: ...98 Index...