ait.core.server.handlers.packet_handler module

class ait.core.server.handlers.packet_handler.PacketHandler(input_type=None, output_type=None, **kwargs)

Bases: ait.core.server.handler.Handler

__init__(input_type=None, output_type=None, **kwargs)
Params:
input_type: (optional) Specifies expected input type, used to
validate handler workflow. Defaults to None.
output_type: (optional) Specifies expected output type, used to
validate handler workflow. Defaults to None
**kwargs:
packet: (required) Name of packet, present in default tlm dict.
Raises:
ValueError: If packet is not present in kwargs.
If packet is specified but not present in default tlm dict.
handle(input_data)
Params:
input_data: message received by stream
Returns:
tuple of packet UID and message received by stream