Retiring an MQTT Device: Remove Retained State Without Erasing Another Device’s Topics
Retire a device’s retained state through an approved list of exact topic names, after stopping every writer that can recreate those values. For each owned topic, MQTT removes the retained value when it accepts a publication with RETAIN set and a zero-byte payload. Unsubscribing, ending the device session or publishing an empty payload without RETAIN…