Environment
- Mac
- nrf tag; 1.1.0
- modem fw: 1.1.0
- DK 0.8.5
- debugging by SEGGER RTT
The program polls SMS for a certain time and if SMS is received, it reads the messages.
When the message is read by blocking_recv, the program hangs up. I coded this program referring to this source:
https://github.com/Rallare/fw-nrfconnect-nrf/blob/nrf9160_samples/samples/nrf9160/simple_at/src/main.c
Also "(sms_notif_fd_s.revents & POLLIN) == POLLIN" sometimes gets true although I don't send SMS to the device.
This symptom did not happen with v1.1.0 of nrf_tag and v1.1.0 of modem
Why does this happen and how can I solve this?
Should I close and open a socket at a certain interval?
I erase previous program by "nrfjprog -e" everytime I flash a new one, and delete an old build folder before building a new program.
Thanks!
---- update -----
when blocking_recv is stuck, err = -1 and errno = 11 are always reported.