This is the multi-page printable view of this section. Click here to print...

Return to the regular view of this page

As of 2026-11-05

mwings.serializers.app_pal_notice_event Module

mwings.serializers.app_pal_notice_event

    Serializers that generate commands representing event packets to be sent to the PAL App (Notification PAL), and the data structures to handle them.

    src/mwings/serializers/app_pal_notice_event.py

    CommandSerializer

    Static class serializer that generates commands representing event data packets sent to the PAL App (Notification PAL)

    Inherits from: common.CommandSerializerBase

    serialize()

    serialize(command)

    Expands the given command into a raw packet byte sequence.

    Arguments

    NameTypeDescription
    commandCommandCommand data

    Returns

    TypeValueDescription
    optional common.BarePacketcommon.BarePacketExpanded data
    NoneInvalid command data

    Command

    Structure to hold data used when generating commands representing event data packets sent to the PAL App (Notification PAL)

    Inherits from: common.CommandBase

    Command()

    Command(*, destination_logical_id=120, event_id=0)

    Arguments

    NameTypeDescription
    destination_logical_idcommon.UInt8Destination logical device ID
    event_idcommon.UInt8Event ID

    You can also pass a dictionary unpacked with **.

    is_valid()

    is_valid()

    Checks whether the command data is valid.

    Arguments

    None

    Returns

    TypeValueDescription
    boolTrueValid
    FalseInvalid

    model_*()