You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.