Skip to content
Commit bab2f80f authored by Michael Scott's avatar Michael Scott Committed by Anas Nashif
Browse files

net: mqtt: mqtt_live should only return success when ping sent



Users of mqtt_live() have no idea when it actually sends a ping.
As a result it's very hard to know when to use mqtt_input() to
process the incoming PINGACK.

Instead of returning a 0 result when a ping isn't generated in
mqtt_live(), let's return -EAGAIN.

Signed-off-by: default avatarMichael Scott <mike@foundries.io>
parent db74b949
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment