Skip to content

Feature Request: Add 'retained' status to @mqtt_trigger #754

@3735943886

Description

@3735943886

Currently, when a function decorated with @mqtt_trigger is triggered, there is no way to access the retain flag of the incoming MQTT message.
How about adding a new keyword argument, retain, to the list of available variables passed to the decorated function. This variable would be a boolean (True or False) indicating the retained status of the message.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions