mqtt: send ping at upkeep interval

Closes #16975
This commit is contained in:
Christian Schmitz 2025-04-05 13:28:03 +02:00 committed by Daniel Stenberg
parent 56e40ae6a5
commit 8ad0243e1f
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
4 changed files with 66 additions and 1 deletions

View file

@ -26,6 +26,10 @@ Example subscribe:
This sends an MQTT SUBSCRIBE packet for the topic `bedroom/temp` and listen in
for incoming PUBLISH packets.
You can set the upkeep interval ms option to make curl send MQTT ping requests to the
server at an internal, to prevent the connection to get closed because of idleness.
You might then need to use the progress callback to cancel the operation.
### Publishing
Command usage: