Skip to content

Commit 059f3fc

Browse files
committed
Fix frequent MQTT_Ping calls in handleKeepAlive
Related to #1915 Update `handleKeepAlive` in `source/core_mqtt.c` to correctly update `pContext->lastPacketTime` when data is received. * Ensure `MQTT_Ping` is not called frequently due to `pContext->lastPacketTime` not updating. * Retain the logic for sending ping packets based on both received and sent message intervals. * Address the issue related to the underlying transport failing to send the data, ensuring reliable data transmission.
1 parent fa50223 commit 059f3fc

File tree

1 file changed

+1430
-0
lines changed

1 file changed

+1430
-0
lines changed

0 commit comments

Comments
 (0)