In the Simple Mqtt example I noticed that the whole thing gets blocked by:
err = poll(&fds, 1, mqtt_keepalive_time_left(&client));
The keep alive is 60 seconds, this means that I cant to anything unless the keep alive is timed out or I receive an MQTT message.
I'm new to Zephyr and Linux so I wonder:
How is poll() intended to be used?
Tested to set the timeout to 1 it works better but is it safe to use? (will I miss packets?)
do I need to call some abort_poll function if I want for e.g. publish a message before the timeout?
/Cheers