better docs
This commit is contained in:
parent
e51b55811c
commit
ab9f2ca05d
@ -25,13 +25,13 @@ from tmtccmd.util import ObjectIdU32
|
||||
|
||||
|
||||
class OpCode:
|
||||
DUMP = "dump"
|
||||
RETRIEVAL_BY_TIME_RANGE = "retrieval_time_range"
|
||||
DELETE_UP_TO = "delete_up_to"
|
||||
|
||||
|
||||
class Info:
|
||||
DUMP = "Dump Telemetry Packets"
|
||||
DELETE_UP_TO = "Delete Telemetry Packets"
|
||||
RETRIEVAL_BY_TIME_RANGE = "Dump Telemetry Packets by time range"
|
||||
DELETE_UP_TO = "Delete Telemetry Packets up to time"
|
||||
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
@ -58,8 +58,8 @@ def pack_tm_store_commands(p: ServiceProviderParams):
|
||||
service=15, subservice=Subservice.DELETE_UP_TO, app_data=app_data
|
||||
)
|
||||
)
|
||||
elif o == OpCode.DUMP:
|
||||
q.add_log_cmd(Info.DUMP)
|
||||
elif o == OpCode.RETRIEVAL_BY_TIME_RANGE:
|
||||
q.add_log_cmd(Info.RETRIEVAL_BY_TIME_RANGE)
|
||||
pass
|
||||
|
||||
|
||||
@ -67,7 +67,7 @@ def pack_tm_store_commands(p: ServiceProviderParams):
|
||||
def add_persistent_tm_store_cmd_defs(defs: TmtcDefinitionWrapper):
|
||||
oce = OpCodeEntry()
|
||||
oce.add(keys=OpCode.DELETE_UP_TO, info=Info.DELETE_UP_TO)
|
||||
oce.add(keys=OpCode.DUMP, info=Info.DUMP)
|
||||
oce.add(keys=OpCode.RETRIEVAL_BY_TIME_RANGE, info=Info.RETRIEVAL_BY_TIME_RANGE)
|
||||
defs.add_service(
|
||||
CustomServiceList.TM_STORE, "Persistent TM Store", op_code_entry=oce
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user