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

NRF9160 poll()

Hello guys,

I`m pretty new in socket programing, I have a question , is there any way to trigger an event for a file descriptor that is used in poll() function ? 

For example: when a timer expires I want to trigger an event that will be catched by my poll() function. 

I searched almost everywhere and did not found anything. 

Thank you. 

Parents Reply
  • Hello, I was working on this example, the operation I want to do is to recieve an message over serial and send it with mqtt_publish, the problem is that after I catch the message from serial in uart interruption, I call mqtt_publish and it get stucked there because whe are in ist and poll does not recieve socket events, the only solution I see is to declare another socket for serial messaging but I can`t figure how to trigger an event for this socket.

Children
Related