This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Socket poll in MQTT sample never waits? Is nrf_poll not fully working on nRF9160 yet?

I am working on a MQTT related application on nRF9160 DK, and grabbed mqtt_simple as a baseline for development.  All of my libraries are back at the last tagged releases: v1.13.99-ncs2 for Zephyr, and v0.3.0 for nrf/nrfxlib.

I have recently been investigating the fact that the call to "poll" in the main loop is never waiting even when there's nothing to be read.  I tried tracking back through the libraries to see what it was doing, but hit a blind wall when I got to nrf_poll in nrfxlib since that's only available as a pre-compiled library from what I've found.

I've tried this both with and without TLS enabled with the same result.

I looked through the git commits to nrfxlib after the tag and nothing looks relevant to this.

I first discovered this on my own application, but it also happens with an unmodified mqtt_simple.

Is it expected for nrfxlib socket polling to have the ability to wait yet?  Is there something wrong in the configuration or calling as done in mqtt_simple?

Parents Reply Children
No Data
Related