Hi there,
I am trying to establishe a socket connection, but the return value of socket() is always -1.
The wifi connection to my AP is working, so I asmue my host driver iplementing and my wiring is working
correctly.
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi there,
I am trying to establishe a socket connection, but the return value of socket() is always -1.
The wifi connection to my AP is working, so I asmue my host driver iplementing and my wiring is working
correctly.
Hi Florian,
What compiler and platform are you using ?
i had similar issue a month ago , it was due to some portage issue/compiler options, please check my recent post
http://e2e.ti.com/support/low_power_rf/f/851/t/298437.aspx
not sure it is the same issue, but it is better to check that
Lionel
Now i have done something like this
int main(void){
..
..
..
while(socket(AF_INET,SOCK_STREAM,IPPROTO_IP)<0);
..
while(1){}
return 0;
}
and socket() returns at some point with an value grater than-1;
Actualy it doesn't fell right overfloating the cc3000 with socket requests.
Thanks for the answer Lionel, will check that right now.
Im using the gcc for AVR ATMEGA.
greetings
Florian
So i changed everything from char to unsigned char as Lionel recommended.
and it is still not working.