param.SaveErase --> param.ExecuteOpcode

This commit is contained in:
Pavel Kirienko
2015-03-18 23:53:02 +03:00
parent 62dd626025
commit ddc4b649a8
6 changed files with 54 additions and 41 deletions
@@ -0,0 +1,29 @@
#
# Service to control the node configuration.
#
# SAVE operation instructs the remote node to save the current configuration parameters to the non-volatile
# storage. The node may require a restart in order for some changes to take effect.
#
# ERASE operation instructs the remote node to clear its configuration storage and reinitialize the parameters
# with their default values. The node may require a restart in order for some changes to take effect.
#
# Other opcodes may be added in the future (for example, an opcode for switching between multiple configurations).
#
uint8 OPCODE_SAVE = 0 # Save all parameters to non-volatile storage.
uint8 OPCODE_ERASE = 1 # Clear the non-volatile storage; some changes may take effect only after reboot.
uint8 opcode
#
# Reserved, keep zero.
#
int48 argument
---
#
# Reserved, keep zero.
#
int48 argument
bool ok
@@ -1,17 +0,0 @@
#
# Service to control non-volatile parameter storage.
#
# SAVE operation instructs the remote node to save the current configuration parameters to the non-volatile
# storage. The device may require a restart in order for some changes to take effect.
#
# ERASE operation instructs the remote node to clear its configuration storage and reinitialize the parameters
# with their default values. The device may require a restart in order for some changes to take effect.
#
uint8 OPCODE_SAVE = 0 # Save all parameters to non-volatile storage.
uint8 OPCODE_ERASE = 1 # Clear the non-volatile storage; some changes may take effect only after reboot.
uint8 opcode
---
bool ok