Hi everyone,
I am looking at sending data via HTTPS to Azure.
I have used the https_sample and modified it to send the data to Azure with no issue. But now I am trying to not only send 1 request but several and I got a weird issue.
I use a while loop in which I open a socket, I then set up the tls on this socket, connect to Azure and send the request. In the end of the loop I use the same "clean-up" than in the example (which closes the socket).
Here is my code :
When I test it I got the sending of the request working a first time, but the second time the NRF9160 just freezes in the connecting step. It bugs me that I do not get any error message and when debugging the firmware just goes and stays in "cpu_idle.S".
Here is my log :
I would like to know what is wrong in my code and how I can re-use the socket to send several HTPPS request.
Kind regards,
Thomas