Skip to content

Commit

Permalink
Fix frequent MQTT_Ping calls in handleKeepAlive
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
vishwamartur committed Oct 30, 2024
1 parent fa50223 commit 059f3fc
Showing 1 changed file with 1,430 additions and 0 deletions.
Loading

0 comments on commit 059f3fc

Please sign in to comment.