retain property

bool retain
getter/setter pair

Gets or sets a value indicating whether this MQTT message should be retained by the message broker for transmission to new subscribers. True if message should be retained by the message broker; otherwise, false.

Implementation

bool retain = false;