Code: |
AS + 311 |
Symbolic: |
bccWriteVar |
This command will write value for a variable. Request parameters are the following:
Offset |
Type |
Label |
Description |
---|---|---|---|
0 |
VARID |
Variable identification |
|
10 |
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 |
|
nackNotInitialized |
Variable is not initialized |
|
For more information about variable types, see table of standard variables.