<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[wolfSSL - Embedded SSL Library — MQTT QoS 1 Message Duplication After Reconnect]]></title>
	<link rel="self" href="https://www.wolfssl.com/forums/feed-atom-topic2532.xml" />
	<updated>2026-06-25T13:23:11Z</updated>
	<generator>PunBB</generator>
	<id>https://www.wolfssl.com/forums/topic2532-mqtt-qos-1-message-duplication-after-reconnect.html</id>
		<entry>
			<title type="html"><![CDATA[Re: MQTT QoS 1 Message Duplication After Reconnect]]></title>
			<link rel="alternate" href="https://www.wolfssl.com/forums/post8839.html#p8839" />
			<content type="html"><![CDATA[<p>Hi Logan,</p><p>Welcome to the wolfSSL Forums.</p><p>QoS1 messages may be duplicated, this is just part of the standard. If your application needs &quot;once-and-only-once&quot;, QoS2 is what you&#039;re looking for.</p><p>It wasn&#039;t clear from your post which side your application is; are you using wolfMQTT as the client, broker. or both?</p><p>You should be able to discern if the message is a duplicate by checking the `msg-&gt;duplicate` field in the callback when a message is received.</p><p>Let us know if that helps.</p><p>Thanks,<br />Eric -wolfSSL Support</p>]]></content>
			<author>
				<name><![CDATA[embhorn]]></name>
				<uri>https://www.wolfssl.com/forums/user1325.html</uri>
			</author>
			<updated>2026-06-25T13:23:11Z</updated>
			<id>https://www.wolfssl.com/forums/post8839.html#p8839</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[MQTT QoS 1 Message Duplication After Reconnect]]></title>
			<link rel="alternate" href="https://www.wolfssl.com/forums/post8838.html#p8838" />
			<content type="html"><![CDATA[<p>Hi everyone,</p><p>I&#039;m testing wolfMQTT on an embedded device that uses a cellular connection. When the network drops briefly and the client reconnects, I occasionally receive duplicate MQTT messages that were originally published with QoS 1.</p><p>My application stores packet IDs and acknowledges messages correctly, but duplicates still appear after reconnection in some cases.</p><p>Does wolfMQTT provide any built-in mechanism or recommended approach for tracking and filtering duplicate QoS 1 messages across reconnect events, especially when using persistent sessions (clean session disabled)?</p><p>If anyone has implemented this successfully on resource-constrained devices, I&#039;d appreciate hearing about your experience.</p><p>Thanks!</p>]]></content>
			<author>
				<name><![CDATA[LoganParkerp]]></name>
				<uri>https://www.wolfssl.com/forums/user8931.html</uri>
			</author>
			<updated>2026-06-25T06:39:27Z</updated>
			<id>https://www.wolfssl.com/forums/post8838.html#p8838</id>
		</entry>
</feed>
