zephyr/subsys/net
Simen S. Røstad adb8087707 net: mqtt: Return -1 if keepalive messages are disabled.
In mqtt_keepalive_time_left(), return -1 if keep alive messages are
disabled by setting CONFIG_MQTT_KEEPALIVE=0.

This allows to use mqtt_keepalive_time_left() directly as an input
for poll(). If no keep-alive is expected, -1 would indicate
that poll() can block until new data is available on the socket.

Signed-off-by: Simen S. Røstad <simen.rostad@nordicsemi.no>
2020-12-08 14:08:36 -05:00
..
ip net: shell: Fix statistics for network interface 2020-12-01 12:37:52 +02:00
l2 net: Adjust the thread priorities 2020-11-20 12:57:29 +02:00
lib net: mqtt: Return -1 if keepalive messages are disabled. 2020-12-08 14:08:36 -05:00
buf.c kernel: subsys: lib: drivers: Use k_heap instead of z_mem_pool wrappers 2020-12-07 21:50:14 -05:00
CMakeLists.txt license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
hostname.c net: hostname: define public macro representing maximum hostname length 2020-11-17 19:21:43 -05:00
Kconfig net: Remove CONFIG_LEGACY_TIMEOUT_API dependency 2020-05-01 10:50:03 +03:00
Kconfig.hostname kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
Kconfig.template.log_config.default.net kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
Kconfig.template.log_config.net kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00