server
server copied to clipboard
Add Support for Disconnect With Will Message Reason Code
Sparkplug PDF - https://www.eclipse.org/tahu/spec/sparkplug_spec.pdf
As per [tck-id-payloads-ndeath-will-message-publisher-disconnect-mqtt50], when an Edge Node is sending a DISCONNECT packet, Disconnect With Will Message
reason code must be passed back. Upon receiving this reason code, the MQTT Broker should still send a will message to subscribers.