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: Michael Scott <mike@foundries.io> |
||
|---|---|---|
| .. | ||
| CMakeLists.txt | ||
| Kconfig | ||
| mqtt_decoder.c | ||
| mqtt_encoder.c | ||
| mqtt_internal.h | ||
| mqtt_os.h | ||
| mqtt_rx.c | ||
| mqtt_transport_socket_tcp.c | ||
| mqtt_transport_socket_tls.c | ||
| mqtt_transport_websocket.c | ||
| mqtt_transport.c | ||
| mqtt_transport.h | ||
| mqtt.c | ||