openpectus.aggregator.command_util

Functions

parse_control_button_command(cmd)

parse_command(cmd, readings)

create_reading_commands(tag, reading)

create_command_examples(commands)

Module Contents

openpectus.aggregator.command_util.parse_control_button_command(cmd)
Parameters:

cmd (openpectus.aggregator.routers.dto.ExecutableCommand)

Return type:

openpectus.protocol.aggregator_messages.ExecuteControlCommandMsg

openpectus.aggregator.command_util.parse_command(cmd, readings)
Parameters:
Return type:

openpectus.protocol.aggregator_messages.InjectCodeMsg

openpectus.aggregator.command_util.create_reading_commands(tag, reading)
Parameters:
  • tag (openpectus.aggregator.models.TagValue)

  • reading (openpectus.aggregator.models.ReadingInfo)

Return type:

list[openpectus.aggregator.routers.dto.ProcessValueCommand]

openpectus.aggregator.command_util.create_command_examples(commands)
Parameters:

commands (list[openpectus.aggregator.models.CommandInfo])

Return type:

list[openpectus.aggregator.routers.dto.CommandExample]