I'm trying a simple program to perform a few HTTP GET and print the answer.
I connect to my home wifi, create a socket, register some simple callback functions (including printing the data on receive), start the socket and send an HTTP GET.
The first GET works perfectly, and I receive the expected page.
After this, two unexpected things happen:
1. The socket is disconnected
2. If I try to restart it again, it gives and error. If I try to create a new socket, and repeat all the above procedure, the callback functions are not registered.
Can somebody help me?
Thanks in advance.