Code: |
AS + 317 |
Symbolic: |
bccSafeWriteVar |
This command will write value for a variable in a safe way. Request parameters are the following:
Offset |
Type |
Label |
Description |
---|---|---|---|
0 |
U32 |
VARSETID |
Variable set indentification |
4 |
VARID |
Variable identification |
|
14 |
U8[] |
DATA |
Variable data, according VARID field. |
On success, a bccAck is received with no data.
On failure, a bccNack is received. Specific errors:
NACK code |
Description |
Extra data |
---|---|---|
nackReadOnly |
Variable read-only (cannot write) |
|
nackIllegalArgs |
Illegal parameter |
U16 What illegal: 1=Type 2=Index 3=Address 4=Repeat counter 5=Bit index 6=Size |
nackDataUnderflow |
Variable data too short |
|
nackIllegalVarsetId |
Illegal variable set identification |
|
nackNotInitialized |
Variable is not initialized |
|
For more information about variable types, see table of standard variables.