Other Parts Discussed in Thread: CC3100
Happens seemingly randomly, other times works fine. I first open the socket
sl_Socket(SL_AF_RF,SL_SOCK_RAW,channel);
Followed by putting it into non-blocking mode
sl_SetSockOpt(socket, SL_SOL_SOCKET, SL_SO_NONBLOCKING,&nonBlockingValue, sizeof(nonBlockingValue));
I then receive data from the socket for ~200ms
sl_Recv(sd,buffer,1472,0);
Then I am cycling through all channels, so I call
sl_SetSockOpt(socket, SL_SOL_SOCKET, SL_SO_CHANGE_CHANNEL, &channel,1);
And the device seems to hang there