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> |
||
---|---|---|
.. | ||
ip | ||
l2 | ||
lib | ||
buf.c | ||
CMakeLists.txt | ||
hostname.c | ||
Kconfig | ||
Kconfig.hostname | ||
Kconfig.template.log_config.default.net | ||
Kconfig.template.log_config.net |