Configure Will Messages (LWT) in emqtt
masterYou can configure a 'Will Message' (Last Will and Testament) using the pub or sub commands. This message is sent by the broker if the client disconnects unexpectedly.
Required for Will Messages:
--will-topic <topic>: The topic for the will message.--will-payload <payload>: The message content for the will.
Optional Will Options:
--will-qos <qos>: QoS for the will message (defaults to 0).--will-retain <bool>: Whether the will message is retained.